[Qt-interest] QFtp crashes under windows, do I need some extra stuff?
Miguel Cardenas
mfcardenas at gmail.com
Fri Jan 29 22:53:11 CET 2010
Hello friends
I am trying to port a X11 Qt application that uses QFtp to Windows. It
already compiles and loads, but when I try to connect the application
crashes. Note that it is currently 100% working under Linux.
It is a very simple program, just need to upload a single file to my server,
so the application only needs host/user/pass/filename, so it is not related
to the aplication or it would not run in Linux neither (I guess).
Trying to findout the problem, remembered that my Windows applications (VC++
without Qt) that use sockets, need to have linked WS2_32.LIB and initialize
the winsock service by calling WSAStartup() before using any socket,
otherwise it crashes in a similar way.
My concrete doubts are:
1. Do I have to link WS2_32.LIB by LIBS+=WS2_32.LIB in the .PRO file?
2. Do I have to WSAStartup() before using QFtp or Qt libraries take care of
all socket stuff?
3. Do I have to link another extra configuration to the .PRO file? The only
extra configuration it has is QT+=network
4. Do I need to include some extra windows libraries?
I am using VC++ express 8.0 with Qt 4.5.1
Thanks for your help!
--
Miguel Cardenas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100129/dc1ad2d3/attachment.html
More information about the Qt-interest-old
mailing list