UNDEFINED REFERENCE PROBLEM

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ashajg
Posts: 30
Joined: Thu, 2018-10-11, 11:10

UNDEFINED REFERENCE PROBLEM

#1 Post by ashajg » Fri, 2018-11-09, 11:55

Hi

I am trying to add DCMTK libs(for android) in my QT project and getting these errors

C:\Ashish\dcmtk-3.6.3\dcmnet\libsrc\dul.cc:383: error: undefined reference to 'signal'
vrscanl.c:5453: error: undefined reference to 'stdin'
vrscanl.c:5453: error: undefined reference to 'stdout'
vrscanl.c:6098: error: undefined reference to 'stderr'
C:\Ashish\dcmtk-3.6.3\oflog\libsrc\threads.cc:80: error: undefined reference to 'sigfillset'
C:\Ashish\dcmtk-3.6.3\ofstd\libsrc\ofstd.cc:287: error: undefined reference to '__gnu_strerror_r'
C:\Ashish\dcmtk-3.6.3\ofstd\libsrc\ofstring.cc:55: error: undefined reference to 'stderr'
C:\Ashish\dcmtk-3.6.3\ofstd\libsrc\ofuuid.cc:62: error: undefined reference to 'rand'
collect2.exe:-1: error: error: ld returned 1 exit status


My .pro file
INCLUDEPATH += "C:/Ashish/TestApplications/TestDcmtkQT/TestDcmtkQT/include"
LIBS += -L"$$PWD/lib/" -li2d -ldcmtls -ldcmnet -ldcmdata -loflog -lofstd


Secondly I have built the lib and trying to add it in my project so why it is taking my source code path while throwing error for ex:
C:\Ashish\dcmtk-3.6.3\ofstd\libsrc\ofstring.cc
how can i solve this problem?

Please help!

J. Riesmeier
DCMTK Developer
Posts: 2284
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: UNDEFINED REFERENCE PROBLEM

#2 Post by J. Riesmeier » Tue, 2018-11-13, 21:38

Just a wild guess: Did you also specify the "include path" to the installed DCMTK (i.e. to the header files)?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest