SDL and QT4 on Windows

Hello everyone,

I have curently developed a QT3 application under linux which uses the SDL Joystick API to succesfully read joystick demands and display the requestd on a QT form.

I now have been tasked to port this code to QT4 and Windows Vista.

I have QT4 working and running test applications standalone. I also have SDL running a joystick test application under windows vista without any problems.

The problems start when I add an SDL thread for the joystick interface to the QT4 Application.

I get the following error “undefined reference to WinMain at 16”.

The main.cpp file is used to create the QT4 GUI and display it.

The libraries (in the mingw32/lib directory) used in the make file are
-lmingw32
-lSDLmain
-lSDL

Help greatly appreciated

thanks
Simon
Simon.Palmer at baesystems.com