I have been wanting to use SDL, but setting it up with irrlicht just does'nt seem to work, I can set it up fine without irrlicht setup to, but I don't
know how to set it up. I use code::blocks with mingw, on windowsXP.
Thanks .
I was wondering: why is it worth anyone's time trying to help you, since (based on your track record) you'll just give up as soon as you hit a problem?
Prove me wrong by putting some effort into your question.
What technique or tutorial have you tried so far? Can you provide a URL for it?
What have you done differently from that tutorial?
What version of SDL are you using?
What exactly "just does'nt [sic] seem to work"? Presumably you can copy and paste an error message.
and I get, undefined reference errors, I changed nothing except for the fact that I linked to libSDL and libSDLmain, are these not the same or something?.
So you are having problems with Irrlichts built in SDL device? Or did you not know that existed? I have no clue anything about it, but I have seen it in the source of Irrlicht quite a bit.
3DModelerMan wrote:and I get, undefined reference errors,
Didn't we just have a long long thread where I tried to tell you that you should not try to summarize error messages but instead post the exact error messages which you get? Undefined references mean you don't link something. But if you want to know what is missing you have to post the errors.
Once more: Errormessages are important. They are the way programs talk to programmers. Their sole reason for existence is to give information to solve problems. If you want help then please do stop cutting out the most useful information which you have on your hands.
Well it does, so I would suggest looking into it. I'm not sure how you would use it, but it might take rebuilding Irrlicht and modifying the IrrCompileConfig.h file or something along those lines ( really don't feel like checking the headers name right now XD ).
Linking executable: data\bin\Main_game.exe
..\SDL-1.2.13\lib\libSDLmain.a(SDL_win32_main.o): In function `console_main':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:246: undefined reference to `_SDL_main'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 9 warnings
Make sure the SDL lib was compiled with the same compiler you are using for your application, and even that it was compiled in the same mode (Debug vs Release). This can make a large difference, especially on windows.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
Linking executable: data\bin\Main_game.exe
..\SDL-1.2.13\lib\libSDLmain.a(SDL_win32_main.o): In function `console_main':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:246: undefined reference to `_SDL_main'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 9 warnings
.
Now we get ahead. First that console_main looks somewhat like you might have misunderstood what I meant in the other thread, but anyway the thing is described in the SDL FAQ: http://www.libsdl.org/faq.php?action=li ... category=4
If your main look like proposed in the solution there (which is also what I meant with console_main in the other thread) and it still does not work, then post again. But continue to check errors, you might get another undefined reference next if you are unlucky (for which you will also find a solution on that FAQ page).
The error is right there!!!
u have to link libSDL.dll.a before libSDLmain.a. just change the link order.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.