> As you say, it worked - surprisingly without adding a WinMain()
> function. I wonder why and how this worked, though...

Because Properties->Linker->System->SubSystem is not set or "Console".

>
> Then I also created a new project from scratch that linked with
> fltkdll, and in this project I got the undefined reference WinMain(),
> as expected. I solved it by adding a small winmain.c file, and this
> worked.

WinMain() is needed if you set the SubSystem property as "Windows".

Nikita Egorov

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

Reply via email to