C
Christian Christmann
Hi,
I've created a file htable.cpp which I compiled to htable.o and
than added with "ar" to a library libbasics.a in the directory
lib/Linux/. Now I want to compile another file ir3tst.cpp which
uses the functions of htable.cpp. I used the command:
"g++ -Wall ir3tst.cpp -o bin/Linux/ir3tst -Llib/Linux -lbasics"
and get some errors "undefined reference to ..." the functions from htable.cpp.
What's wrong?
Chris
I've created a file htable.cpp which I compiled to htable.o and
than added with "ar" to a library libbasics.a in the directory
lib/Linux/. Now I want to compile another file ir3tst.cpp which
uses the functions of htable.cpp. I used the command:
"g++ -Wall ir3tst.cpp -o bin/Linux/ir3tst -Llib/Linux -lbasics"
and get some errors "undefined reference to ..." the functions from htable.cpp.
What's wrong?
Chris