Hello everyone,
I use VC 7 (Visual Studio.Net 2003) created a static lib, then I use VC6 to link with it in an application, there are some errors during link. Here is the source file of the lib,
Code:
int foo()
{
return 2008;
}
Here is the header of the lib file,
Here is the application using the static lib,
Code:
#include "foo.h"
int main()
{
int a = foo();
return 0;
}
When building the lib using VC7, there are no errors and the static lib is generated. When building the application and link it with the static lib, there are errors,
Code:
--------------------Configuration: VC6VC7lib - Win32 Debug--------------------
Linking...
VC7_static_lib.lib(foo.obj) : fatal error LNK1190: invalid fixup found, type 0x000C
Error executing link.exe.
VC6VC7lib.exe - 1 error(s), 0 warning(s)
I can not find any useful information from MSDN. Could anyone help please -- how to use VC6 link a static library generated by VC7?
thanks in advance,
George