Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Command line error D2016 : '/Gm' and '/clr' command-line options are incompatible

872 views
Skip to first unread message

Simon Donovan

unread,
Nov 3, 2003, 7:44:33 AM11/3/03
to
Hi there,

I'm getting the error message above when compiling a .cpp file in
Visual C++ .NET. I've tried playing around with different property
settings and still
can't resolve it. Has anybody got the same message and got around it?
I'd appreciate any help at all.

Thanks very much

Simon

Robert Gruen [MSFT]

unread,
Nov 3, 2003, 11:39:54 AM11/3/03
to
Simon,

I've seen this issue once or twice before. Try doing the following:

go to the Project Properties and change following properties:

Configuration Properties ->C/C++ -> General -> Debug Information Format =
Program Database (Zi) and also
Configuration Properties ->C/C++ -> Optimization ->Optimization = Disabled
(/Od)


Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
| From: dono...@hotmail.com (Simon Donovan)
| Newsgroups: microsoft.public.vsnet.debugging
| Subject: Command line error D2016 : '/Gm' and '/clr' command-line options
are incompatible
| Date: 3 Nov 2003 04:44:33 -0800
| Organization: http://groups.google.com
| Lines: 11
| Message-ID: <6193d04.03110...@posting.google.com>
| NNTP-Posting-Host: 62.77.171.190
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1067863473 7669 127.0.0.1 (3 Nov 2003
12:44:33 GMT)
| X-Complaints-To: groups...@google.com
| NNTP-Posting-Date: Mon, 3 Nov 2003 12:44:33 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!no
t-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.debugging:4016
| X-Tomcat-NG: microsoft.public.vsnet.debugging

0 new messages