Software Archive
Read-only legacy content
17061 Discussions

Probs. linking v6.1 .obj with v6.5 .obj

Intel_C_Intel
Employee
289 Views
I need to find some way of linking object files created using the v6.1 compiler with object files created using the v6.5 compiler. I use object files from a v6.5 project and modules created using the v6.1 compiler and when I try to link the v6.5 objects with a v6.1 object using the v6.1 linker I run into LNK2001 linker problems.

It nearly works but I get LNK2001 "unresolved external symbol" for just one intrinsic routine which is RANDOM_NUMBER. Hence it seems that the RANDOM_NUMBER calls in the object files created by v6.5 are not recognised by the v6.1 linker. Does anybody know how I can make the object files or intrinsic routines compatible between v6.1 and v6.5?

Many thanks in advance for any suggestions.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
289 Views
You're linking a 6.5 object with the 6.1 run-time library. Can't do that. You always have to link against the run-time library that is at least as new as the compiler you used. It's not the linker (which is pretty much the same), but the libraries.

Steve
0 Kudos
Reply