I have a very old library that I don't have its source code. This library was written in FORTRAN and it was compiled using Open Watcom (OW) compiler.
I am trying to port it to Intel and I did the following steps:
1) At first, I tried to link it directly using Intel and I got the following messages:
ipo: warning #11010: file format not recognized for oldlibrary.lib...oldlibrary.lib: fatal error LNK1136: invalid or corrupt file
2) Then, I used a library utility that comes with OW called wlib to convert the library to AR format. Indeed, I don't know if this works, but I have other library compiled against OW that I converted to AR format and is working pretty well in other project compiled with Intel.
3) Now, in fact, Intel seems to accept the library format, but it comes up with the following naming convention errors:
mysubroutine.obj: error LNK2019: unresolved external symbol _OLDLIBRARYROUTINE1 referenced in function _MYFUNCTIONmysubroutine.obj: error LNK2019: unresolved external symbol _OLDLIBRARYROUTINE2 referenced in function _MYFUNCTION...
If I check the names inside the library, none of them are defined with prepended underscores.
Is there a manner to indicate to Intel Fortran linker that it should not prepend underscores to these subroutine names (OLDLIBRARYROUTINE1, OLDLIBRARYROUTINE2, etc...)?
Thanks in advance,