Board index » Visual Studio » Need to suppress generation of debugging information locally.

Need to suppress generation of debugging information locally.

Visual Studio166
Hi All,



I'm sorry about reposting this question several times over the last week,

but I'd like to get an answer -- even if it's just "sit down and shut up."



I have written a macro-based Interface Definition Language:



www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost.Interfaces



which produces a lot of internal errors and compiler limit errors (C1001, C1055,

C1067) when compiled on VC7.1 with /Zi or /ZI. The library compiles on GCC

3.4.1, Comeau 4.3.3 and Intel 8.0, and with fewer errors on VC8.0 beta, so I

don't think the errors reflect non-conformance with the C++ standard.



I've found I can eliminate most of the errors by surrounding the interface

definitions with



#pragma component(mintypeinfo, on)

...

#pragma component(mintypeinfo, off)



but this is not ideal, since most of the code is generated by user level macros,

and pragmas cannot be generated by macros.



What I really need is _Pragma, which I know is not available. Is there a

Microsoft-specific attribute I can specify, perhaps using __declspec, which will

have the effect of suppressing debug info?



Best Regards,

Jonathan


-
 

Re:Need to suppress generation of debugging information locally.



Quote
I'm sorry about reposting this question several times over the last week,

but I'd like to get an answer -- even if it's just "sit down and shut up."





AFAIK the #pragma component(mintypeinfo) is the only way to suppress

type information for a type.



The absence of answers most probably means that there is no other known way.



Regards,

Oleg









-