pouët.net

help with SDL

category: code [glöplog]
 
having problems with SDL.
following the tutorials on sdltutorials.com and not doing well
can't even compile. I'm using Code::Blocks with VC2008 as compiler
have included sdl/sdlmain.lib under link libs and everything like that
I'm using the VC edition of the dev libs, what is preventing my code from compiling? Looks like the linker can't find main().

I get this output:

and why all these warnings?

Code: c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|61|warning C4820: 'SDL_keysym' : '3' bytes padding added after data member 'SDL_keysym::scancode'| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|64|warning C4820: 'SDL_keysym' : '2' bytes padding added after data member 'SDL_keysym::unicode'| c:\sdl-1.2.15\include\sdl\SDL_video.h|82|warning C4820: 'SDL_PixelFormat' : '2' bytes padding added after data member 'SDL_PixelFormat::Ashift'| c:\sdl-1.2.15\include\sdl\SDL_video.h|91|warning C4820: 'SDL_PixelFormat' : '3' bytes padding added after data member 'SDL_PixelFormat::alpha'| c:\sdl-1.2.15\include\sdl\SDL_video.h|101|warning C4820: 'SDL_Surface' : '2' bytes padding added after data member 'SDL_Surface::pitch'| c:\sdl-1.2.15\include\sdl\SDL_events.h|130|warning C4820: 'SDL_KeyboardEvent' : '1' bytes padding added after data member 'SDL_KeyboardEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|138|warning C4820: 'SDL_MouseMotionEvent' : '1' bytes padding added after data member 'SDL_MouseMotionEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|157|warning C4820: 'SDL_JoyAxisEvent' : '1' bytes padding added after data member 'SDL_JoyAxisEvent::axis'| c:\sdl-1.2.15\include\sdl\SDL_events.h|165|warning C4820: 'SDL_JoyBallEvent' : '1' bytes padding added after data member 'SDL_JoyBallEvent::ball'| c:\sdl-1.2.15\include\sdl\SDL_events.h|196|warning C4820: 'SDL_ResizeEvent' : '3' bytes padding added after data member 'SDL_ResizeEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|213|warning C4820: 'SDL_UserEvent' : '3' bytes padding added after data member 'SDL_UserEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|223|warning C4820: 'SDL_SysWMEvent' : '3' bytes padding added after data member 'SDL_SysWMEvent::type'| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|36|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|49|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|60|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|73|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|85|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|97|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|105|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|117|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|435|warning C4514: 'getwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|437|warning C4514: 'putwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h|480|warning C4514: 'div' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|84|warning C4514: 'strnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|183|warning C4514: 'strchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|185|warning C4514: 'strpbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|187|warning C4514: 'strrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|189|warning C4514: 'strstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|194|warning C4514: 'memchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|257|warning C4514: 'wcsnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|330|warning C4514: 'wcschr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|332|warning C4514: 'wcspbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|334|warning C4514: 'wcsrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|336|warning C4514: 'wcsstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|203|warning C4514: '_MarkAllocaS' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|238|warning C4514: '_freea' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|101|warning C4514: 'SDL_Swap16' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|163|warning C4514: 'SDL_Swap64' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|61|warning C4820: 'SDL_keysym' : '3' bytes padding added after data member 'SDL_keysym::scancode'| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|64|warning C4820: 'SDL_keysym' : '2' bytes padding added after data member 'SDL_keysym::unicode'| c:\sdl-1.2.15\include\sdl\SDL_video.h|82|warning C4820: 'SDL_PixelFormat' : '2' bytes padding added after data member 'SDL_PixelFormat::Ashift'| c:\sdl-1.2.15\include\sdl\SDL_video.h|91|warning C4820: 'SDL_PixelFormat' : '3' bytes padding added after data member 'SDL_PixelFormat::alpha'| c:\sdl-1.2.15\include\sdl\SDL_video.h|101|warning C4820: 'SDL_Surface' : '2' bytes padding added after data member 'SDL_Surface::pitch'| c:\sdl-1.2.15\include\sdl\SDL_events.h|130|warning C4820: 'SDL_KeyboardEvent' : '1' bytes padding added after data member 'SDL_KeyboardEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|138|warning C4820: 'SDL_MouseMotionEvent' : '1' bytes padding added after data member 'SDL_MouseMotionEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|157|warning C4820: 'SDL_JoyAxisEvent' : '1' bytes padding added after data member 'SDL_JoyAxisEvent::axis'| c:\sdl-1.2.15\include\sdl\SDL_events.h|165|warning C4820: 'SDL_JoyBallEvent' : '1' bytes padding added after data member 'SDL_JoyBallEvent::ball'| c:\sdl-1.2.15\include\sdl\SDL_events.h|196|warning C4820: 'SDL_ResizeEvent' : '3' bytes padding added after data member 'SDL_ResizeEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|213|warning C4820: 'SDL_UserEvent' : '3' bytes padding added after data member 'SDL_UserEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|223|warning C4820: 'SDL_SysWMEvent' : '3' bytes padding added after data member 'SDL_SysWMEvent::type'| demo_onevent.cpp|4|warning C4100: 'Event' : unreferenced formal parameter| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|36|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|49|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|60|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|73|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|85|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|97|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|105|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|117|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|435|warning C4514: 'getwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|437|warning C4514: 'putwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h|480|warning C4514: 'div' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|84|warning C4514: 'strnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|183|warning C4514: 'strchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|185|warning C4514: 'strpbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|187|warning C4514: 'strrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|189|warning C4514: 'strstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|194|warning C4514: 'memchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|257|warning C4514: 'wcsnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|330|warning C4514: 'wcschr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|332|warning C4514: 'wcspbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|334|warning C4514: 'wcsrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|336|warning C4514: 'wcsstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|203|warning C4514: '_MarkAllocaS' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|238|warning C4514: '_freea' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|101|warning C4514: 'SDL_Swap16' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|163|warning C4514: 'SDL_Swap64' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|61|warning C4820: 'SDL_keysym' : '3' bytes padding added after data member 'SDL_keysym::scancode'| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|64|warning C4820: 'SDL_keysym' : '2' bytes padding added after data member 'SDL_keysym::unicode'| c:\sdl-1.2.15\include\sdl\SDL_video.h|82|warning C4820: 'SDL_PixelFormat' : '2' bytes padding added after data member 'SDL_PixelFormat::Ashift'| c:\sdl-1.2.15\include\sdl\SDL_video.h|91|warning C4820: 'SDL_PixelFormat' : '3' bytes padding added after data member 'SDL_PixelFormat::alpha'| c:\sdl-1.2.15\include\sdl\SDL_video.h|101|warning C4820: 'SDL_Surface' : '2' bytes padding added after data member 'SDL_Surface::pitch'| c:\sdl-1.2.15\include\sdl\SDL_events.h|130|warning C4820: 'SDL_KeyboardEvent' : '1' bytes padding added after data member 'SDL_KeyboardEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|138|warning C4820: 'SDL_MouseMotionEvent' : '1' bytes padding added after data member 'SDL_MouseMotionEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|157|warning C4820: 'SDL_JoyAxisEvent' : '1' bytes padding added after data member 'SDL_JoyAxisEvent::axis'| c:\sdl-1.2.15\include\sdl\SDL_events.h|165|warning C4820: 'SDL_JoyBallEvent' : '1' bytes padding added after data member 'SDL_JoyBallEvent::ball'| c:\sdl-1.2.15\include\sdl\SDL_events.h|196|warning C4820: 'SDL_ResizeEvent' : '3' bytes padding added after data member 'SDL_ResizeEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|213|warning C4820: 'SDL_UserEvent' : '3' bytes padding added after data member 'SDL_UserEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|223|warning C4820: 'SDL_SysWMEvent' : '3' bytes padding added after data member 'SDL_SysWMEvent::type'| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|36|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|49|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|60|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|73|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|85|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|97|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|105|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|117|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|435|warning C4514: 'getwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|437|warning C4514: 'putwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h|480|warning C4514: 'div' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|84|warning C4514: 'strnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|183|warning C4514: 'strchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|185|warning C4514: 'strpbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|187|warning C4514: 'strrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|189|warning C4514: 'strstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|194|warning C4514: 'memchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|257|warning C4514: 'wcsnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|330|warning C4514: 'wcschr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|332|warning C4514: 'wcspbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|334|warning C4514: 'wcsrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|336|warning C4514: 'wcsstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|203|warning C4514: '_MarkAllocaS' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|238|warning C4514: '_freea' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|101|warning C4514: 'SDL_Swap16' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|163|warning C4514: 'SDL_Swap64' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|61|warning C4820: 'SDL_keysym' : '3' bytes padding added after data member 'SDL_keysym::scancode'| c:\sdl-1.2.15\include\sdl\SDL_keyboard.h|64|warning C4820: 'SDL_keysym' : '2' bytes padding added after data member 'SDL_keysym::unicode'| c:\sdl-1.2.15\include\sdl\SDL_video.h|82|warning C4820: 'SDL_PixelFormat' : '2' bytes padding added after data member 'SDL_PixelFormat::Ashift'| c:\sdl-1.2.15\include\sdl\SDL_video.h|91|warning C4820: 'SDL_PixelFormat' : '3' bytes padding added after data member 'SDL_PixelFormat::alpha'| c:\sdl-1.2.15\include\sdl\SDL_video.h|101|warning C4820: 'SDL_Surface' : '2' bytes padding added after data member 'SDL_Surface::pitch'| c:\sdl-1.2.15\include\sdl\SDL_events.h|130|warning C4820: 'SDL_KeyboardEvent' : '1' bytes padding added after data member 'SDL_KeyboardEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|138|warning C4820: 'SDL_MouseMotionEvent' : '1' bytes padding added after data member 'SDL_MouseMotionEvent::state'| c:\sdl-1.2.15\include\sdl\SDL_events.h|157|warning C4820: 'SDL_JoyAxisEvent' : '1' bytes padding added after data member 'SDL_JoyAxisEvent::axis'| c:\sdl-1.2.15\include\sdl\SDL_events.h|165|warning C4820: 'SDL_JoyBallEvent' : '1' bytes padding added after data member 'SDL_JoyBallEvent::ball'| c:\sdl-1.2.15\include\sdl\SDL_events.h|196|warning C4820: 'SDL_ResizeEvent' : '3' bytes padding added after data member 'SDL_ResizeEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|213|warning C4820: 'SDL_UserEvent' : '3' bytes padding added after data member 'SDL_UserEvent::type'| c:\sdl-1.2.15\include\sdl\SDL_events.h|223|warning C4820: 'SDL_SysWMEvent' : '3' bytes padding added after data member 'SDL_SysWMEvent::type'| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|36|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|49|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|60|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|73|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|85|warning C4514: 'swprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|97|warning C4514: 'vswprintf' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|105|warning C4514: '_swprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl|117|warning C4514: '_vswprintf_l' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|435|warning C4514: 'getwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h|437|warning C4514: 'putwchar' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h|480|warning C4514: 'div' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|84|warning C4514: 'strnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|183|warning C4514: 'strchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|185|warning C4514: 'strpbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|187|warning C4514: 'strrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|189|warning C4514: 'strstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|194|warning C4514: 'memchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|257|warning C4514: 'wcsnlen_s' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|330|warning C4514: 'wcschr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|332|warning C4514: 'wcspbrk' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|334|warning C4514: 'wcsrchr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h|336|warning C4514: 'wcsstr' : unreferenced inline function has been removed| C:\Program Files\Microsoft Visual Studio 9.0\VC\include\malloc.h|203|warning C4514: '_MarkAllocaS' : unreferenced inline function has been removed| c:\sdl-1.2.15\include\sdl\SDL_endian.h|163|warning C4514: 'SDL_Swap64' : unreferenced inline function has been removed| LINK||fatal error LNK1561: entry point must be defined| ||=== Build finished: 1 errors, 267 warnings ===|

added on the 2013-06-18 10:45:43 by zorke zorke
the last one is the one that is really annoying and stops the program from building
added on the 2013-06-18 10:46:15 by zorke zorke
http://rghost.net/46837338
added on the 2013-06-18 10:46:31 by zorke zorke
there's stackoverflow for that
no entry point? huh? and you can't fix it? you know /entry:main would do but...
added on the 2013-06-18 11:01:33 by yumeji yumeji
what g. said
added on the 2013-06-18 11:20:54 by skomp skomp
Is at least WIN32 defined?
Is your entry point "int main(int argc, char* argv[])"?
Is the file that contains it actually compiled?
Subsystem Console under linker settings?
Have you included SDL.lib and SDLmain.lib?
added on the 2013-06-18 11:29:32 by raer raer
solving strange compiler errors is so rewarding (once you make it) - good luck
added on the 2013-06-18 11:41:03 by TLM TLM
What I usually do is put an #undef main in the beginning of my code, I am not exactly sure why it's needed. Some people told me I should not do it this way but include SDLmain instead but this still didn't work for me. #undef main works though but I am doing it blindly. Can one explain what's going on?
added on the 2013-06-18 13:15:04 by Optimus Optimus
This is probably that skanky SDLMain-thingie's fault.
added on the 2013-06-18 13:30:45 by kusma kusma
SDL is trying to wrap your portable, C-standard "int main(argc, argv)" into some windows-ish "Winmain" method so the compiler will find it. However, sometimes the compiler is actually looking for the standard main method. So if that works...

login