I found that to build my Fortran program, which links to a C library, it was necessary to ignore msvcrt.lib, otherwise I get linker errors about functions being already defined in LIBCMT.lib. Now I want to use clock() in the C code, but the linker says:
Error 1 error LNK2001: unresolved external symbol __imp__clock cvReactDiff-lib.lib(cvReactDiff_bnd.obj)
If I stop ignoring msvcrt.lib I don't get this error, but 10 others instead. I don't understand why clock() is singled out - I'm using many other functions in the C runtime library. Is there a way to get around this?