Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Undefined reference to winMain@16
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
102jon




PostPosted: Thu Dec 16, 2010 1:40 pm   Post subject: Undefined reference to winMain@16

Hi, I'm writing a graphics program using GLUT in C++. I am using the Codeblocks IDE with GNU GCC as my compiler. When I try to build and link, i get the following error message:

undefined reference to `WinMain@16'

I have included windows.h, what could the problem be?
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Thu Dec 16, 2010 2:23 pm   Post subject: Re: Undefined reference to winMain@16

Are you using the "main" method as your entry point, or "WinMain"?
Oh, and what toolchain are you using (GCC, VC++, etc)
Edit: oops, you did list your toolchain. My bad.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: