-
Linking .obj file
I have two different versions of an .obj file... one for full version, and one for trial version.
In stdafx.h, I have an option to declare a trial version flag, however i don't know how to pick and choose between the .obj files. I always have to manually remove one obj file and add the other.
Is there a way to do this in the code somewhere?
Compiler is VC++ 6.0
-
Re: Linking .obj file
Use LIB.EXE to create a library (.lib) for each version of the .obj files.
http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx
Then use #pragma comment(lib, "mylib.lib") to link against one version or the other.
http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx
gg
-
Re: Linking .obj file
perfect! works great, thank you