Hi-
I am trying to create a program that utilizes both C and C++ subroutines
The C and C++ subroutines are in their own library compiled with VS2005
I don’t seem to be able to get a debuggable library to use the same C runtime library as the fortran project:
Linking...
2>c_cpp.lib(myCpp.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
2>LINK : warning LNK4098: defaultlib 'libcmt' conflicts with use of other libs; use /NODEFAULTLIB:library
2>c_cpp.lib(myCPP.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "protected: virtual char const * __thiscall std::ctype<char>::_Do_widen_s(char const *,char const *,char *,unsigned int)const " (?_Do_widen_s@?$ctype@D@std@@MBEPBDPBD0PADI@Z)
2>libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
2>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
2>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
2>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
2>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __malloc_dbg
2>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
2>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __free_dbg
2>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype
2>C:\Documents and Settings\rcj\My Documents\PVF\CODE\PVFProject\myF90\Win32\Debug\myF90.exe : fatal error LNK1120: 4 unresolved externals
2>myF90 build failed.
2>Build log was saved at "file://C:\Documents and Settings\rcj\My Documents\PVF\CODE\PVFproject\myF90\Win32\Debug\BuildLog.htm"
I can build a release executable, but how do I debug the interaction between the Fortran code and the CPP library?