Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

___tmainCRTStartup error

Status
Not open for further replies.

falled

Programmer
Nov 3, 2006
47
ES
Help please,

I've created an empty project and I'm trying to compile My own opengl tiny winy game xD

But I can't do that because of this error
Code:
Error	1	error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup	LIBCMTD.lib

and this (consequence of the first?)

Code:
Error	2	fatal error LNK1120: 1 unresolved externals	D:\...	1

I think I've changed all the properties in the project options:

Configuration properties->General
-Character Set = Use multi-byte character set

Configuration properties->C/C++->Runtime Library->
-Code generation = Multi-threading debug (\mtd)
Configuration properties->C/C++->Preprocessor->
-Preprocessor definitons = WIN32;_DEBUG;_WINDOWS


Configuration properties->Linker->Input
Aditional dependencies = opengl32.lib glu32.lib
Configuration properties->Linker->System
Subsytem = Windows (/SUBSYSTEM:WINDOWS)


I think that's all, any suggestion???

Thank you all and sorry for my bad writting!
 
Which system are you using? Is it one of

VS 6.0
VS 2002
VS 2003.net
VS 2005.net
VS Express

or something else?

Where did you get the openGL libraries from or are they the standard ones tht
 
SOLVED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


GoTo Project Properties -> Configuration Properties -> Linker -> Advanced

Put "main" to the "Entry Point" field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top