I have a C++ project that can be compiled with -D UNICODE
.
When I compile it without that Define, it creates a bunch of object files which I then add to a .a archive file using the command: ar.exe rcs Cpplib.a *.o
Then I compile it with that define and archive the objects using: ar.exe rcs CpplibU.a *.o
where the U states that the archive is a Unicode one.
Is there a way I can combine both .a files into ONE archive so that I can link to that instead of having to link to:
Cpplib_x32.a Cpplib_x64.a Cpplib_x32U.a Cpplib_x64U.a
Now I don't mind linking to x32 and x64 separately but having to link to 2 x64's and 2 x32's is kinda annoying.
I want to know if there is a way I can either combine the x32 and x64 archives OR combine the Non-Unicode and Unicode archives. I don't need both. Either, Or.
Any ideas or am I stuck having to link to all 4?