Hi There!

I got some issues by using QThread on the "new" operating system Lion MAC OSX.

Qt Code:
  1. g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o SSHTunnel.app/Contents/MacOS/SSHTunnel main.o mainwindow.o connectionthread.o serverthread.o moc_mainwindow.o moc_connectionthread.o moc_serverthread.o -F/Users/noah/QtSDKauto/Desktop/Qt/473/gcc/lib -L/Users/noah/QtSDKauto/Desktop/Qt/473/gcc/lib -framework QtGui -framework QtCore
  2. Undefined symbols for architecture x86_64:
  3. "QTcpServer::QTcpServer(QObject*)", referenced from:
  4. ServerThread::run() in serverthread.o
  5. "QHostAddress::QHostAddress(QHostAddress::SpecialAddress)", referenced from:
  6. ServerThread::run() in serverthread.o
  7. "QTcpServer::listen(QHostAddress const&, unsigned short)", referenced from:
  8. ServerThread::run() in serverthread.o
  9. "QHostAddress::~QHostAddress()", referenced from:
  10. ServerThread::run() in serverthread.o
  11. ld: symbol(s) not found for architecture x86_64
  12. collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode 

When I compile an application for MAC OSX Lion (10.7), using QThread, I always get this error, posted above. Is this a problem caused by Lion or just because I made a stupid mistake?

Is there anyone who can help me and maybe got the same problem and could fix it?

It would be very nice if I get an useful answer, that I can continue developping

Regards
Rynns