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
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