473,508 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need local suppression of debug info

Dear All,

My latest library leads to 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 declarations
with

#pragma component(mintypeinfo, on)
...
#pragma component(mintypeinfo, off)

but this is not ideal, since much 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 an
attribute I can specify with __declspec which will have the effect of
suppressing debug info?

Best Regards,
Jonathan


Nov 17 '05 #1
1 1288
Hi,
I see no one has responded to my query about locally suppressing debug info
without using a pragma. I realize I posted on the day before the US Thanksgiving
holiday, so perhaps readership of this list is down a bit. However, I'm inclined
to believe that it is not possible.

If anyone knows that it is *definitely* not possible, please let me know.

Best Regards,
Jonathan

"Jonathan Turkanis" <te******@kangaroologic.com> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
Dear All,

My latest library leads to 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 declarations
with

#pragma component(mintypeinfo, on)
...
#pragma component(mintypeinfo, off)

but this is not ideal, since much 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 an
attribute I can specify with __declspec which will have the effect of
suppressing debug info?

Best Regards,
Jonathan

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2255
by: Joshua Beall | last post by:
Hi All, I know that I can prepend functions with an '@' character in order to get them to not output any errors, but I am wondering is there any way for a function that I write to know if it has...
8
2676
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
8
477
by: frank | last post by:
Below is some code for doing and insert into one of my tables. The inserts do not work because a duplicate key exists, which I want to happen. The problem is, I cannot get access to return an error...
4
2729
by: Peter Ritchie | last post by:
Does anyone know how to suppress a specific warning for a line or block of code in C#? C++ has a nice facility to disable a warning for a block of code with #pragma for warnings that are incorrect...
6
1906
by: Michael | last post by:
I am running an application that requires "Full Trust" which is declared in the assembly. How do I trap for the System.Security.Policy.PolicyException that is raised by a local machines CAS if...
3
2436
by: vijaykokate | last post by:
Our company http://www.softnmation.com/ offers its customers a great variety of products. Everything you need can be found in this site. Web Template, CSS Template, Logo Template, Corporate...
1
2521
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
1
2052
by: JavaNme | last post by:
I need someone to debug the following errors for me, so that i can run the program. 1>------ Build started: Project: TheBankProject, Configuration: Debug Win32 ------ 1>Compiling... 1>BANK.cpp...
3
1354
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET web application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed....
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.