I have two precompiled library: X.a and Y.a and a test.cpp (without main function) source code use these two libraries.
I compiled the C++ using:
g++ -c test.cpp
and I got ‘test.o’.
Now how can I link these three together to generate a .a file because test.cpp use some function in X.a and Y.a and other GCC libraries?
BTW, I am doing these under Windows using MinGW. Can I rename this .a file to .lib and use this .lib in VC?
Thanks!
.ais nothing more thenararchive containg all object files (.ofiles)Yes, but it requires little trick to work. See:
http://opensees.berkeley.edu/community/viewtopic.php?t=2267