NO

Author Topic: error 1035 with #include<SDL/SDL.h> and error 2120 with #include<SDL.h>  (Read 16154 times)

net2011

  • Guest
Re: error 1035 with #include<SDL/SDL.h> and error 2120 with #include<SDL.h>
« Reply #15 on: December 21, 2011, 12:06:35 AM »
I took MirekCZ's advice on this page here http://forum.pellesc.de/index.php?topic=2858.0 and it got rid of the "Use <stdlib.h> instead of non-standard <malloc.h>" message but it they still give me the same two errors.

czerny

  • Guest
Re: error 1035 with #include<SDL/SDL.h> and error 2120 with #include<SDL.h>
« Reply #16 on: December 21, 2011, 12:31:11 AM »
What project settings have you used to produce sdlmain.lib?

czerny

net2011

  • Guest
Re: error 1035 with #include<SDL/SDL.h> and error 2120 with #include<SDL.h>
« Reply #17 on: December 21, 2011, 03:00:26 AM »
In project options under compiler I have warnings set to level 1, calling conv set to _cdecl, machine is set to x86, inlining is set to default, the enable microsoft extensions box is checked under options, under assembler debug information is set to none, calling conv is set to cdecl, machine is set to x86, under linker these are all my library and object files kernel32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib advapi32.lib delayimp.lib sdl.lib sdlmain.lib, type is set to console under subsystem and machine is set to x86. I hope I understood your question. Thanks for the help.

czerny

  • Guest
Re: error 1035 with #include<SDL/SDL.h> and error 2120 with #include<SDL.h>
« Reply #18 on: December 21, 2011, 11:15:32 AM »
There shouldn't be a linker tab, because you are building a static library. And obviously you can not include libmain.lib if you are just building libmain.lib.

Try building this library from scratch.

czerny