Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

missing libc.lib

cecio
Novice
553 Views
Hi,
i wolud like to port an old dll vritten in CVF 6.6 and c++ under visual studio 6 in a new solution VS2008.

The problem is that i have a link error LNK1104: missing LIBC.lib.
I have already added " ignore libc.lib" but, i have the error too.

It is possible that /nodefaultlib doesn't work?

my command line from VS2008 is:

/OUT:"Debug/pcroutdll.dll" /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB:"libcmtd.lib libc.lib" /DEF:"Otsw32.def" /MANIFEST /MANIFESTFILE:"C:\\Users\\cecio\\Desktop\\sviluppo_vs2008\\pcroutdll+_w7\\Debug\\pcroutdll.dll.intermediate.manifest" /DEBUG /PDB:"Debug/pcroutdll.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug/pcroutdll.lib" /DLL kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Otsw32.lib

Thanks
Cecio
0 Kudos
1 Reply
Steven_L_Intel1
Employee
553 Views
Your specification of the /NODEFAULTLIB option is incorrect. I think you need a semicolon-separated list in the project property. However, this will still give you problems. Any Fortran code compiled with another compiler must be recompiled with Intel Fortran. If you are linking to some C library that was compiled with VC6, you must recompile it with a newer C compiler. Microsoft removed libc.lib in VS2005.
0 Kudos
Reply