I gave up on visual studio

  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    Kay fixed that problem, I had just pasted the files in sdl, but now i have a new problem :(

    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x77e): undefined reference to `_SDL_Init'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x78d): undefined reference to `_SDL_Quit'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x7c9): undefined reference to `_SDL_SetVideoMode'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x7eb): undefined reference to `_SDL_WM_SetCaption'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x7fc): undefined reference to `_SDL_EnableUNICODE'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x812): undefined reference to `_SDL_GetError'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x83f): undefined reference to `_SDL_GetError'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0xac9): undefined reference to `_BZ2_bzBuffToBuffDecompress'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x144d): undefined reference to `_SDL_LockSurface'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x147b): undefined reference to `_SDL_UnlockSurface'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x1585): undefined reference to `_SDL_UnlockSurface'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x15be): undefined reference to `_SDL_LockSurface'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x1edc): undefined reference to `_BZ2_bzBuffToBuffDecompress'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x3152): undefined reference to `_SDL_GetMouseState'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0xb0df): undefined reference to `_BZ2_bzBuffToBuffDecompress'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x14b1): undefined reference to `_SDL_UpdateRect'
    /tmp/ccN2WhSJ.o:graphics.c:(.text+0x15b6): undefined reference to `_SDL_UpdateRect'
    /tmp/ccp3098v.o:interface.c:(.text+0x141c): undefined reference to `_SDL_PollEvent'
    /tmp/ccp3098v.o:interface.c:(.text+0x14d9): undefined reference to `_SDL_PollEvent'
    /tmp/ccp3098v.o:interface.c:(.text+0x14e6): undefined reference to `_SDL_GetModState'
    /tmp/ccp3098v.o:interface.c:(.text+0x1921): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x194b): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x1bf9): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x1c81): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x1cab): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x1ed8): more undefined references to `_SDL_GetMouseState' follow
    /tmp/ccp3098v.o:interface.c:(.text+0x4ef4): undefined reference to `_BZ2_bzBuffToBuffDecompress'
    /tmp/ccp3098v.o:interface.c:(.text+0x6881): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x6f95): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x7159): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x7641): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x788e): undefined reference to `_SDL_GetMouseState'
    /tmp/ccp3098v.o:interface.c:(.text+0x8671): more undefined references to `_SDL_GetMouseState' follow
    /tmp/ccAWlsSa.o:main.c:(.text+0x74b): undefined reference to `_BZ2_bzBuffToBuffDecompress'
    /tmp/ccAWlsSa.o:main.c:(.text+0x20ae): undefined reference to `_BZ2_bzBuffToBuffCompress'
    /tmp/ccAWlsSa.o:main.c:(.text+0x27c2): undefined reference to `_BZ2_bzBuffToBuffCompress'
    /tmp/ccAWlsSa.o:main.c:(.text+0x2844): undefined reference to `_SDL_RWFromFile'
    /tmp/ccAWlsSa.o:main.c:(.text+0x2869): undefined reference to `_SDL_LoadWAV_RW'
    /tmp/ccAWlsSa.o:main.c:(.text+0x28ab): undefined reference to `_SDL_BuildAudioCVT'
    /tmp/ccAWlsSa.o:main.c:(.text+0x28e1): undefined reference to `_SDL_ConvertAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x28ec): undefined reference to `_SDL_FreeWAV'
    /tmp/ccAWlsSa.o:main.c:(.text+0x290a): undefined reference to `_SDL_LockAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x292e): undefined reference to `_SDL_UnlockAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x293d): undefined reference to `_SDL_GetError'
    /tmp/ccAWlsSa.o:main.c:(.text+0x3df4): undefined reference to `_SDL_MixAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x3e2d): undefined reference to `_SDL_MixAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x4586): undefined reference to `_SDL_OpenAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x459a): undefined reference to `_SDL_PauseAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x4740): undefined reference to `_SDL_GetError'
    /tmp/ccAWlsSa.o:main.c:(.text+0x4e40): undefined reference to `_SDL_GetMouseState'
    /tmp/ccAWlsSa.o:main.c:(.text+0x5c6c): undefined reference to `_SDL_GetMouseState'
    /tmp/ccAWlsSa.o:main.c:(.text+0x6356): undefined reference to `_SDL_GetTicks'
    /tmp/ccAWlsSa.o:main.c:(.text+0x7386): undefined reference to `_SDL_CloseAudio'
    /tmp/ccAWlsSa.o:main.c:(.text+0x7dd6): undefined reference to `_SDL_GetTicks'
    /tmp/ccCmGjQx.o:misc.c:(.text+0x3a7): undefined reference to `_regcomp'
    /tmp/ccCmGjQx.o:misc.c:(.text+0x3d2): undefined reference to `_regexec'
    /tmp/ccCmGjQx.o:misc.c:(.text+0x3dc): undefined reference to `_regfree'
    /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/libmingw32.a(main.o):(.text+0x85): undefined reference to `_WinMain@16'
    collect2: ld returned 1 exit status
    make: *** [powder-sse.exe] Error 1

    Excuse me I'm gonna go buy a sledge hammer
  • vanquish349
    23rd Mar 2011 Member 0 Permalink
    i tried to cross compile before but i found it way to hard
  • jalfor
    23rd Mar 2011 Member 0 Permalink

    ubuntupokemoninc:



    Excuse me I'm gonna go buy a sledge hammer


    how about this one

    http://www.kettlebells.com.au/store/sledge-hammer-15kg.html
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    seriously i don't know whats wrong, this maybe against the rules but can some one compile it in windows for me?!

    My computer ****************************************************************************************************************************ing sucks!!!! I just invented a swear word lol
    just type abunch of stars :P
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    Try compiling using the Makefile from the official source (remembering to follow the wiki instructions "Change all instances of -llibregex to -llibgnurx").

    Official version compiles fine for me, I think the problem may be the -L/usr/lib in your Makefile. When cross-compiling, you need to use the files in /usr/i586-mingw32msvc/lib instead of the ones in /usr/lib.
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    I use the search tool for -llibregex to change it to -llibgnurx and it couldn't find it, thats in the make file right? should i just download the original make file and replace the old, I'm not sure if fillip kofron changed my make file when he wrote the mk.sh file.
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    Yes, your current Makefile is different from the original one.

    jacksonmj:

    Try compiling using the Makefile from the official source
  • sillu129
    23rd Mar 2011 Member 0 Permalink
    Code blocks is easier to set up at least it was for me
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    nope because fillip changed it to c++ i need the makefile he wrote!

    btw what does no new line at end of file mean, i know its just a warning but it still might be a problem