linking error

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2009
Posts: 20
Reputation: iammfa has a little shameless behaviour in the past 
Solved Threads: 0
iammfa iammfa is offline Offline
Newbie Poster

linking error

 
0
  #1
Sep 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: linking error

 
0
  #2
Sep 5th, 2009
Sounds like you're using main() instead of WinMain().
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC