<br>Bingo,<br><br>Building object file FindTags.o...<br>Building executable /home/olivier/Tfe/GDCM/gdcm/Example/FindTags...<br>FindTags.o(.text+0x193): In function `main':<br>: undefined reference to `gdcm::FileHelper::FileHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'<br>FindTags.o(.text+0x283): In function `main':<br>: undefined reference to `gdcm::FileHelper::FileHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'<br>FindTags.o(.text+0x3bf): In function `main':<br>: undefined reference to `gdcm::FileHelper::GetImageDataSize()'<br>FindTags.o(.text+0x410): In function `main':<br>: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'<br>FindTags.o(.text+0x423): In function `main':<br>: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned short, unsigned short)'<br>FindTags.o(.text+0x4b2): In function `main':<br>: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'<br>FindTags.o(.text+0x51f): In function `main':<br>: undefined reference to `gdcm::Util::Format(char const*, ...)'<br>FindTags.o(.text+0x54f): In function `main':<br>: undefined reference to `gdcm::Util::DicomString(char const*)'<br>FindTags.o(.text+0x5b2): In function `main':<br>: undefined reference to `gdcm::FileHelper::SetValEntry(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short, unsigned short)'<br>FindTags.o(.text+0x5d1): In function `main':<br>: undefined reference to `gdcm::Util::Format(char const*, ...)'<br>FindTags.o(.text+0x654): In function `main':<br>: undefined reference to `gdcm::Util::DicomString(char const*)'<br>FindTags.o(.text+0x887):!
In
function `main':<br>: undefined reference to `gdcm::FileHelper::WriteAcr(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'<br>collect2: ld returned 1 exit status<br>make[1]: *** [/home/olivier/Tfe/GDCM/gdcm/Example/FindTags] Erreur 1<br>make: *** [default_target] Erreur 2<br><br><br>----------------------------------------<br>olivier.stern@swing.be wrote:<br><br>> Je viens d'essayer de compiler les exemples et dès le premier fichier <br>> à compiler, j'ai des erreurs du même style (je vous le copie). Je ne <br>> comprends pas du tout à quoi cela peut être du.<br>><br>> Olivier<br>><br>> Building object file AnonymizeDicomDir.o...<br>> Building executable <br>> /home/olivier/Tfe/GDCM/gdcm/Example/AnonymizeDicomDir...<br>> AnonymizeDicomDir.o(.text+0x183): In function <br>> `AnoNoLoad(gdcm::SQItem*, std::basic_fstream >*, unsigned short, <br>> unsigned short, std::basic_string, std::allocator >)':<br>> : undefined reference to `typeinfo for
gdcm::ValEntry'<br><br>Oops.<br>C'est etrange, ton truc ..<br>La seule reference a typeinfo qu'il y a dans gdcm, c'est dans <br>gdcmException.cxx:#include <typeinfo><br>mais s'il y avait un pb de ce cote la, ca serait a la compilitaion, pas <br>au link.<br><br>On dirait qu'il lui manque la dll pour pouvoir linker.<br><br>(Je suppose que si tu commentes out AnonymizeDicomDir dans le <br>CMakeLists.txt, tu auras une erreur sur le programme suivant ?)<br>JP<br><br>> AnonymizeDicomDir.o(.text+0x188): In function <br>> `AnoNoLoad(gdcm::SQItem*, std::basic_fstream >*, unsigned short, <br>> unsigned short, std::basic_string, std::allocator >)':<br>> : undefined reference to `typeinfo for gdcm::DocEntry'<br>> AnonymizeDicomDir.o(.text+0x565): In function `main':<br>> : undefined re! ference to `gdcm::File::File(std::basic_string, <br>> std::allocator > const&)'<br>> AnonymizeDicomDir.o(.text+0x6c0): In function `main':<br>> : undefined reference to `typeinfo for gdcm::SeqEntry'<br>>
AnonymizeDicomDir.o(.text+0x6c5): In function `main':<br>> : undefined reference to `typeinfo for gdcm::DocEntry'<br>> AnonymizeDicomDir.o(.text+0x7ff): In function `main':<br>> : undefined reference to `gdcm::SeqEntry::GetFirstSQItem()'<br>> AnonymizeDicomDir.o(.text+0x85f): In function `main':<br>> : undefined reference to `typeinfo for gdcm::ValEntry'<br>> AnonymizeDicomDir.o(.text+0x864): In function `main':<br>> : undefined reference to `typeinfo for gdcm::DocEntry'<br>> AnonymizeDicomDir.o(.text+0xb0b): In function `main':<br>> : undefined reference to `gdcm::SeqEntry::GetNextSQItem()'<br>> AnonymizeDicomDir.o(.gnu.linkonce.t._ZN4gdcm5Debug7DebugOnEv+0xc): In <br>> function `gdcm::Debug::DebugOn()':<br>> : undefined reference to `gdcm::Debug::SetDebugFlag(bool)'<br>> collect2: ld ret! urned 1 exit status<br>> make[1]: *** [/home/olivier/Tfe/GDCM/gdcm/Example/AnonymizeDicomDir] <br>> Erreur 1<br>> make: *** [default_target] Erreur
2<br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Dcmlib mailing list<br>>Dcmlib@creatis.insa-lyon.fr<br>>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib<br>><br><br><br>