Sunday, March 29, 2009

Aaahhh!! Warnings and Errors in Visual Studio.

1. Project : error PRJ0003 : Error spawning 'mt.exe'.
Solution:
Change MSVS 2005 options (Tools menu > Options > Project and Solutions > VC++ Directories) to ensure that
$(SystemRoot)
$(SystemRoot)\System32
$(SystemRoot)\System32\wbem
are specified BEFORE $(PATH).

2. Warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in XYZ.lib
Solution:
Don't put any 'Additional dependencies' .libs in your static libraries. Only add them as 'Additional dependencies' to your .exe. If you are using someone elses library that does that, tell them to stop it.

3. warning C4714: function 'XYZ()' marked as __forceinline not inlined
Solution:
http://msdn.microsoft.com/en-us/library/a98sb923.aspx