[Dcmlib] gcc (derniers essais)

olivier.stern at swing.be olivier.stern at swing.be
Wed Jul 20 17:33:08 CEST 2005


Bingo,

Building object file FindTags.o...
Building executable /home/olivier/Tfe/GDCM/gdcm/Example/FindTags...
FindTags.o(.text+0x193): In function `main':
: undefined reference to `gdcm::FileHelper::FileHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
FindTags.o(.text+0x283): In function `main':
: undefined reference to `gdcm::FileHelper::FileHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
FindTags.o(.text+0x3bf): In function `main':
: undefined reference to `gdcm::FileHelper::GetImageDataSize()'
FindTags.o(.text+0x410): In function `main':
: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'
FindTags.o(.text+0x423): In function `main':
: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'
FindTags.o(.text+0x4b2): In function `main':
: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'
FindTags.o(.text+0x51f): In function `main':
: undefined reference to `gdcm::Util::Format(char const*, ...)'
FindTags.o(.text+0x54f): In function `main':
: undefined reference to `gdcm::Util::DicomString(char const*)'
FindTags.o(.text+0x5b2): In function `main':
: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'
FindTags.o(.text+0x5d1): In function `main':
: undefined reference to `gdcm::Util::Format(char const*, ...)'
FindTags.o(.text+0x654): In function `main':
: undefined reference to `gdcm::Util::DicomString(char const*)'
FindTags.o(.text+0x887): In function `main':
: undefined reference to `gdcm::FileHelper::WriteAcr(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make[1]: *** [/home/olivier/Tfe/GDCM/gdcm/Example/FindTags] Erreur 1
make: *** [default_target] Erreur 2


----------------------------------------
olivier.stern at swing.be wrote:

> Je viens d'essayer de compiler les exemples et dès le premier fichier 
> à compiler, j'ai des erreurs du même style (je vous le copie). Je ne 
> comprends pas du tout à quoi cela peut être du.
>
> Olivier
>
> Building object file AnonymizeDicomDir.o...
> Building executable 
> /home/olivier/Tfe/GDCM/gdcm/Example/AnonymizeDicomDir...
> AnonymizeDicomDir.o(.text+0x183): In function 
> `AnoNoLoad(gdcm::SQItem*, std::basic_fstream >*, unsigned short, 
> unsigned short, std::basic_string, std::allocator >)':
> : undefined reference to `typeinfo for gdcm::ValEntry'

Oops.
C'est etrange, ton truc ..
La seule reference a typeinfo qu'il y a dans gdcm, c'est dans  
gdcmException.cxx:#include <typeinfo>
mais s'il y avait un pb de ce cote la, ca serait a la compilitaion, pas 
au link.

On dirait qu'il lui manque la dll pour pouvoir linker.

(Je suppose que si tu commentes out AnonymizeDicomDir dans le 
CMakeLists.txt, tu auras une erreur sur le programme suivant ?)
JP

> AnonymizeDicomDir.o(.text+0x188): In function 
> `AnoNoLoad(gdcm::SQItem*, std::basic_fstream >*, unsigned short, 
> unsigned short, std::basic_string, std::allocator >)':
> : undefined reference to `typeinfo for gdcm::DocEntry'
> AnonymizeDicomDir.o(.text+0x565): In function `main':
> : undefined re! ference to `gdcm::File::File(std::basic_string, 
> std::allocator > const&)'
> AnonymizeDicomDir.o(.text+0x6c0): In function `main':
> : undefined reference to `typeinfo for gdcm::SeqEntry'
> AnonymizeDicomDir.o(.text+0x6c5): In function `main':
> : undefined reference to `typeinfo for gdcm::DocEntry'
> AnonymizeDicomDir.o(.text+0x7ff): In function `main':
> : undefined reference to `gdcm::SeqEntry::GetFirstSQItem()'
> AnonymizeDicomDir.o(.text+0x85f): In function `main':
> : undefined reference to `typeinfo for gdcm::ValEntry'
> AnonymizeDicomDir.o(.text+0x864): In function `main':
> : undefined reference to `typeinfo for gdcm::DocEntry'
> AnonymizeDicomDir.o(.text+0xb0b): In function `main':
> : undefined reference to `gdcm::SeqEntry::GetNextSQItem()'
> AnonymizeDicomDir.o(.gnu.linkonce.t._ZN4gdcm5Debug7DebugOnEv+0xc): In 
> function `gdcm::Debug::DebugOn()':
> : undefined reference to `gdcm::Debug::SetDebugFlag(bool)'
> collect2: ld ret! urned 1 exit status
> make[1]: *** [/home/olivier/Tfe/GDCM/gdcm/Example/AnonymizeDicomDir] 
> Erreur 1
> make: *** [default_target] Erreur 2
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050720/e95f36bb/attachment.html>


More information about the Dcmlib mailing list