tags:

views:

27

answers:

2

hi,

i m trying to use DCMTK library built in MSVC in my qt application.although i have added libs in my .pro file like Libs+= -Ldcmtk/lib -ofstd -dcmdata..i have also include .h files of these libraries but i m getting undefined reference error for each function i m calling of these library.. what i m missing..

A: 

If you are getting an undefined reference error then you haven't linked to the correct library.

Mike McQuaid
A: 

You use Qt Creator?

Say you have a lib file named libodbc32.a Then you should add a lib like this:

LIBS += -L [path to the libodbc32.a] -L [path to libsystemc.a] -lodbc32 -lsystemc

So I think you have linked not in an appropriate way.

Narek