[MINC-users] ON Building the ezminc examples

Li Wei lwthucs at gmail.com
Mon Feb 7 21:05:17 EST 2011


Hi All:

I have a trouble when dealing with the ezminc examples when linking. I have
installed the minc in the folder (/usr/local) as the prefix. I have checked
the /usr/local/lib/ for the libraries and they are all there. The error
reported is like follows:

Linking CXX executable any_itk_any
../minc_io/libminc_io.a(minc_1_rw.o): In function
`minc::minc_1_base::history() const':
minc_1_rw.cpp:(.text+0x60e): undefined reference to `MI2attinq(int, int,
char const*, int*, int*)'
../minc_io/libminc_io.a(minc_1_rw.o): In function
`minc::minc_1_base::var_number() const':
minc_1_rw.cpp:(.text+0x78c): undefined reference to `MI2inquire(int, int*,
int*, int*, int*)'
../minc_io/libminc_io.a(minc_1_rw.o): In function
`minc::minc_1_base::var_name(int) const':

However, I have used nm to check the /usr/local/lib/libminc2.a it shows

$ nm libminc2.a |grep MI2attinq
         U MI2attinq
         U MI2attinq
         U MI2attinq
000000b0 T MI2attinq
         U MI2attinq

I have set the cmake path MINC path to /usr/local but I am not sure what I
have done wrong. Hope for your kind help. Thanks

-- 
Best Regards,
LI Wei
IIIS, Tsinghua University


More information about the MINC-users mailing list