[Linker Error] undefined reference to `WinMain@16' Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
eriX
Experienced Solver
Experienced Solver
Posts: 84
Joined: Wed Feb 04, 2009 2:08 pm
Location: Germany
Contact:

[Linker Error] undefined reference to `WinMain@16'

Post by eriX »

I've copied my project today, to work on it at another computer.
After making some changes with the GUI-Designer from wxDevC++ the linker stopped with the following output:

C:\Programme\Dev-Cpp\MinGW32\lib\libmingw32.a(main.o) In function `main'::
[Linker Error] undefined reference to `WinMain@16'
ld returned 1 exit status
xyz\Makefile.win [Build Error] [Output/MingW/xyz.exe] Error 1

I've googled this error, but found no solution.

I hope you can help me!

Thanks a lot!

-Eric
eriX
Experienced Solver
Experienced Solver
Posts: 84
Joined: Wed Feb 04, 2009 2:08 pm
Location: Germany
Contact:

Re: [Linker Error] undefined reference to `WinMain@16'

Post by eriX »

I solved my problem ;)

I restored my .dev file from a previous backup, and now it works again :D

It seems that Dropbox isn't a good place for storing project files, because some files became deletet o_O
Post Reply