[Insight-users] compilation problem
Fleming, Matthew
mfleming at mcw.edu
Sun Jul 22 20:42:04 EDT 2007
Just to follow up on my own post to indicate that the problem I reported was a manifestation of my own stupidity and did not represent a problem with ITK.
I reported compile errors as follows:
>>/home/mfleming/InsightToolkit-3.2.0/build/bin/libitksys.a(DynamicLoader.o): In function `itksys::DynamicLoader::LastError()':
>>DynamicLoader.cxx:(.text+0x33): undefined reference to `dlerror'
>>/home/mfleming/InsightToolkit-3.2.0/build/bin/libitksys.a(DynamicLoader.o): In function `itksys::DynamicLoader::GetSymbolAddress(void*, char const*)':
>>DynamicLoader.cxx:(.text+0x4e): undefined reference to `dlsym'
>>/home/mfleming/InsightToolkit-3.2.0/build/bin/libitksys.a(DynamicLoader.o): In function `itksys::DynamicLoader::CloseLibrary(void*)':
>>DynamicLoader.cxx:(.text+0x6d): undefined reference to `dlclose'
>>/home/mfleming/InsightToolkit-3.2.0/build/bin/libitksys.a(DynamicLoader.o): In function `itksys::DynamicLoader::OpenLibrary(char const*)':
>>DynamicLoader.cxx:(.text+0x9f): undefined reference to `dlopen'
>>collect2: ld returned 1 exit status
on Linux.
It turns out that the missing symbols (dlerror, dlsym, dlclose, and dlopen) all live in a library called libdl.a. I had inadvertently created my own library with the same name, which was hiding the system library.
Sorry for the waste of electrons.
Matthew Fleming
More information about the Insight-users
mailing list