Hi,
i'm using c++ with SDL, SDL image libraries, i trying build a small example, i got this error in linking when i build every project:

------ Build started: Project: 00000, Configuration: Debug Win32 ------
Linking...
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\Users\iammfa\Documents\Visual Studio 2008\Projects\00000\Debug\00000.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Users\iammfa\Documents\Visual Studio 2008\Projects\00000\Debug\BuildLog.htm"
00000 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

i'm using the following:
vc++ 2008 express
SDL-1.2.13 for vc 8 .. http://www.libsdl.org/download-1.2.php
SDL_image-1.2.7 for vc 9 .. http://www.libsdl.org/projects/SDL_image/

how solve this bug..?
regards
iammfa

Sounds like you're using main() instead of WinMain().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.