Netbeans & Cygwin : undefined reference to `_WinMain@16'

  • From: "mawg" < >
  • To:
  • Subject: Netbeans & Cygwin : undefined reference to `_WinMain@16'
  • Date: Wed, 19 Sep 2012 08:29:17 -0400

When I try to create and build a new NetBeans project using Cygwin, I get


Code:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o): In 
function `main':
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygwin/lib/libcmain.c:39:
 undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status



A few hours of googling only seem to point out that this is the Windows 
main() function and I should select a console application if that is what I 
want.

It is - I do want console application, coded in C, but NetBeans does not seem 
to offer that option.

NetBeans v7.1






Netbeans & Cygwin : undefined reference to `_WinMain@16'

mawg 09/19/2012

Netbeans & Cygwin : undefined reference to `_WinMain@16'

mawg 09/20/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close