Coder schrieb:
> Hi,
>
>
> I get an error trying to compile with mingW on windows.
>
> $fltk-config --compile myfirstwindow.cxx
> g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows -DWIN32 
> -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 'MyFirstWindow' 
> 'MyFirstWindow.cxx' -mwindows /usr/local/lib/libfltk.a -lole32 -luuid 
> -lcomctl32
> c:/mingw/bin../lib/gcc/mingw32/4.5.2/../../../libmingw32.a(main.o):main.c(.text+0xd2):
>  undefined reference to 'WinMain@16'
> collect2: ld returned 1 exit status
>
>
> How can I solve it?

Looks like there is no main function in your project, something like 
"int main()" or "int main(int argc, const char* argv[])".

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to