943,960 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 629
  • C++ RSS
Sep 5th, 2009
0

linking error

Expand Post »
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
Reputation Points: 3
Solved Threads: 0
Light Poster
iammfa is offline Offline
47 posts
since Apr 2009
Sep 5th, 2009
1

Re: linking error

Sounds like you're using main() instead of WinMain().
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Infinite loop....i need help seriously= =
Next Thread in C++ Forum Timeline: changing array value...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC