2001.03.01 16:42 "Error while trying to compile a program using TIFF library", by Chakravarthy Terlapu

2001.03.01 16:42 "Error while trying to compile a program using TIFF library", by Chakravarthy Terlapu

Hi,

I am trying to compile a program using TIFF library and I get the following errors. erase.c is the file which uses the TIFF library, I am trying to compile using -ltiff.

When I tried a sample program using cc test.c -ltiff it compiled fine, it also did compile with g++ test.c -ltiff although it gave me a warning

ld32: WARNING 127: Two shared objects with the same soname, /usr/lib32/mips3/libm.so and /usr/lib32/libm.so, have been been linked. This is probably due to a missing -L specification. Ignoring the latter.

But when i try using it in a make file it gives errors as shown.

>make
        g++ -g -c box.c -o box.o
        g++ -g -c minRectangle.cpp -o minRectangle.o
        g++ -g -c extend.cpp -o extend.o
        g++ erase.c -ltiff -o erase.o
ld32: WARNING 127: Two shared objects with the same soname,
/usr/lib32/mips3/libm.so and /usr/lib32/libm.so, have been been linked.
This is probably due to a missing -L specification. Ignoring the latter.

ld32: ERROR 33 : Unresolved text symbol "main" -- 1st referenced by
/usr/lib32/mips3/crt1.o. Use linker option -v to see when and which
objects, archives and dsos are loaded. ld32: INFO 152: Output file removed
because of error.
collect2: ld returned 2 exit status
*** Error code 1 (bu21)
>

Thanks
Chaks