[solved] VS2010 problem if also have previous VS installed

The problem lays in a macro that imports the default directories in the project settings and thus the VS2010 compiler is trying to use some VS2008 libraries that are incompatible with the new build.

Specifically the setting that was causing the linker error with all of the OF projects (and not only… even just with the iostrem library) are in the “Library Files”.

The “Library Files” settings has moved from Tools | Options to the Project Properties.

Check your Project | Properties … | Configuration Properties | VC++ Directories | Library Directories and make sure that the inherited values do not include paths relative to older VS versions (in my case there was a “C:\Program Files\Microsoft Visual Studio 9.0\VC\lib”)

:lol: