winmain@16 error

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ianbd
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Oct 10, 2004 7:53 pm

winmain@16 error

Post by ianbd »

Hi

I have been trying to compile a basic wx window and have managed to almost get to the finish line. But I keep getting the following error and have no idea why it is occurring:

c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16

I am using wx-config on the command line, viz:
g++ -I/usr/local/include `wx-config --cxxflags` `wx-config --libs`

I have a def file and an rc file which is all the extras I thought I needed. If anyone has a suggestion where to start looking t'would be grand

Ian
McCabe
In need of some credit
In need of some credit
Posts: 7
Joined: Wed Sep 08, 2004 1:44 pm
Location: SE
Contact:

Post by McCabe »

Is that really your complete g++ line..? No object files?

/l
Post Reply