hi

I've created two libraries (static ones)
and the second one uses a function from
the first one. 

I normally link them like this

ar r lib1.a lib1.o
ranlib r lib1.a

ar r lib2.a lib2.o
ranlib r lib2.a

then I try to link my program like this

gcc -o program program.o -l1 -l2

The linker keeps telling me that it's
impossible to find the function called
in the second library which is normally
present in the first one. Everything starts
to work when I call this function in program.c.

Does anybody know how to solve this ?

Thank You.

Reply via email to