Original Post
I'm working on an individual project for one of my subjects at uni, and it has to do with image processing. To this end, the lecturer has told us that we should be using an image library that was developed at the uni some time ago. When I attmpt to compile my program when calling a particular function, I get this output:
g++ -c -Wall -g seg.cpp
g++ -c -Wall -g main.cpp
g++ -c -Wall -g proj.cpp
g++ -Wall -g main.o seg.o -L/cs/cc/lib/mil/lib -limage -L/usr/X11R6/lib -lX11 -lm -o main
/cs/cc/lib/mil/lib/libimage.a(i_templa.o)(.text+0x4b): In function `i_template':
: undefined reference to `__ctype_b'
/cs/cc/lib/mil/lib/libimage.a(i_templa.o)(.text+0xe9): In function `i_template':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make: *** [all] Error 1
I'm compiling with gcc on linux. I'm not sure what version of linux because I'm ssh'ing in through Putty. Now, what it looks like (to my untrained eye) is that the library has been improperly compiled. Is this a possibility? I did a quick google, and one of the sites said that it was possible that the compiler isn't linking with the std C libraries properly, but everything else that I'm compiling/linking is working with no problems.