Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, May 2007
can not find -lQtTestd4


Message 1 in thread

Hi,

I'm doing unit test using QtTest.

My code does not have any compilation errors but a link error:
ld.exe: can not find -lQtTestd4

I noticed g++ used -L"c:\Qt\4.2.3\lib" to search for libraries, so I tried
to look for libQtTestd4.a in that folder by myself. However, I could not
find it but libQtTest4.a.

(I found the other two necessary libraries though, libQtGuid4.a and
libQtCored4.a )

What should I do to fix this problem?

Thanks


--
 [ signature omitted ] 

Message 2 in thread

On 16.05.07 10:14:43, yifli@xxxxxxx wrote:
> I'm doing unit test using QtTest.
> 
> My code does not have any compilation errors but a link error:
> ld.exe: can not find -lQtTestd4

Are you using qmake to produce the Makefiles? If so this sounds like a
QMake bug or a bug in QT4's buildsystem. If you're using a prepackaged
binary build I guess that one is broken a bit.

However I do have both libraries (with and without d) here on my System
using Qt4.3rc1 self-built in debug_and_release mode.

Andreas

-- 
 [ signature omitted ]