Skip to main content
GameDev.net gamedev.net
🔒 Locked

unknown error while linking

Started by Corrosive May 17, 2005 at 5:39 PM 1 replies 800+ views
Original Post
Corrosive
Corrosive
Hi folks.. Im getting a strange error here... dunno why its happenning, because I checked the includes and libs, everything... but i probably forgot something! Can you help me out? Compiling... WinMain.cpp Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/rpg.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Thx!
To code is to make things come to life ;)
JohnBolton
JohnBolton
You probably created the project as a console project (which has the function main as the entry point), but you wrote a Windows app (which has WinMain as the entry point). If this is the case, then you need to create your project again -- this time as a Windows app. In VS .NET 2003, choose Win32 Project instead of Win32 Console Project.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
Corrosive
Corrosive
Thx for the help mate.. it worked! I think i should pay more attention :)
To code is to make things come to life ;)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.