Re: Windows C/C++ Linker errors - solved
Posted by: Guy Davidson
Date: January 13, 2006 06:20PM

OK, I'm a great big eedjit.

___imp_getdrives was caused by my calling _getdrives through <direct.h> rather than calling GetLogicalDrives. Once I had that sorted, I used the /NODEFAULTLIB directive to turn off the MSVCRTD library. Unfortunately, during development I moved from listing the libraries in the linker options to using #pragma comment(lib, x) but wasn't very thorough about clearing up afterwards. This caused additional problems.

Anyway, the solution appears to be to turn off the msvcrt library, which is used for dynamically linking to the MS runtime DLL. libc (and all its variations) is the static equivalent.

Bedtime now...

Cheers,
Guy

Options: ReplyQuote


Subject
Views
Written By
Posted
795
September 21, 2005 12:32PM
468
January 13, 2006 05:30PM
Re: Windows C/C++ Linker errors - solved
469
January 13, 2006 06:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.