Search code examples
c++netbeanscygwin

Undefined reference to WinMain with Netbeans and Cygwin 32 Bits


yesterday I made a project in NetBeans 8.0.2 and Cygwin 32 Bits, today when I tryed to compile in a 64 Cygwin compiler, I got an error saying "Undefined reference to WinMain". What can I do to compile it in this 64 Cygwin compiler?

#include <cstdlib>
#include <iostream>
#include "Agenda.h"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    Agenda nueva;

    nueva.menuAgenda();

    return 0;
}

Solution

  • Don't mix 32bit netbean with 64bit cygwin one

    https://netbeans.org/bugzilla/show_bug.cgi?id=234221