views:

359

answers:

2

I realize this is probably caused by some _dllexport() somewhere, not in my code but in some third-party piece. (Qt, Boost, OpenSG, ...)

Is there a simple linker option to disable this? I've searched but not found anywhere.

A: 

I suggest you make sure that you have different folders for intermediate files and output files.

I use to setup the projects this way (project properties/general configuration page):

Output Directory = $(SolutionDir)\Build\$(ConfigurationName)
Intermediate Directory = $(SolutionDir)\Build\$(ConfigurationName)\$(ProjectName)
Cătălin Pitiș
I have that. The exp/lib are output files. (makes good sense for dlls)
Marcus Lindblom
+1  A: 

AFAIK, no, because the relevant #pragma's override the linker settings.

MSalters
Ok, that makes sense. :-/
Marcus Lindblom