Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error: undefined reference to 'winmain@16'
Error: undefined reference to 'winmain@16' [message #520513] Fri, 12 March 2010 11:44 Go to previous message
Eclipse UserFriend
I get the following error:
undefined reference to 'winmain@16'

The source:
#include <iostream>
int main()
{
int x = 5;
int y = 7;
cout << "\n";
cout << x + y << " " << x * y;
cout << "\n";
return 0;
}


Edit: If I use this source code in my first project. It's working perfectly. But all projects after hello world give the errors:
- undefined reference to 'winmain@16'
- Launch failed. Binary not found.

But If I compile in my first project. Everything ok.

What is going wrong?

Edit:
one of 2 solved. But the launch failed. Binary not found remains.
Still the same...any source change at my first project works perfectly, any new projects give this error....

[Updated on: Fri, 12 March 2010 13:29] by Moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Change output file name
Next Topic:Macro Expansion
Goto Forum:
  


Current Time: Sun Jun 29 17:05:24 EDT 2025

Powered by FUDForum. Page generated in 0.02559 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top