I have two precompiled libraries: X.aand Y.a, and the source code test.cpp (without the main function) uses these two libraries.
I compiled C ++ using:
g++ -c test.cpp
and I got 'test.o'.
Now, how can I link these three together to generate a file .abecause test.cpp uses some function in Xa and Ya and other GCC libraries?
By the way, I am doing this under Windows using MinGW. Can I rename this .a file to .lib and use this .lib in VC?
Thank!
source
share