PDA

View Full Version : QTcpSocket & QTcpServer are mishappen.



Fallen_
16th August 2010, 22:35
They doesnt work on windows at all, whenever i compile a program containing any of them it gives "name.exe exited with code "some code"" even when i compile there examples.

tbscope
17th August 2010, 05:22
You need to provide a lot more information to get a correct answer.

The things you should include is the error code and if possible your source code.

Fallen_
18th August 2010, 18:34
Hi, thanks for the answer, even when i try to compile a simple program like this:

#include <QApplication>
#include <QTcpSocket>

int main(int argc, char *argv[]) {
QApplication a(argc, argv);
QTcpSocket sock;
sock.connectToHost("irc.quakenet.org", 6667);
return a.exec();
}
it gave me this:
test.exe exited with code -1073741515
using Qt Creator btw

tbscope
19th August 2010, 05:29
Your program doesn't find a necessary DLL to run.

Why it even linked in the first place, I don't know.
Anyway, check if all the needed libraries are accessible from your PATH environment variable.

Fallen_
23rd August 2010, 19:06
i reinstalled Qt Creator and it worked, thx