Author Topic: Compile singe file broken  (Read 7050 times)

JakeMontgomery

  • Community Member
  • Posts: 79
  • Hero Points: 9
Compile singe file broken
« on: September 29, 2008, 03:25:15 PM »
I have a VisualStudio 8 project that builds fine under SE, but when I compile a single file in SE (13.0.2) I get two conflicts with the pch. 

First off, my project is built with the "/Zc:wchar_t-" flag.  It appears that compile.e will add "/Zc:wchar_t" if the option is on, but does not explicitly add "/Zc:wchar_t-" when the option is off, as it is in mine.  The compiler, on the other hand, seems to assume it is on in the absence of any flag. 

The second problem is that visual studio seems to add "/D _VC80_UPGRADE=0x0710" to the command line, even though that is not in the .vcproj.  This is something that happens when a project in upgraded from VS7.1.  In any case, SE is not adding the define, and that causes a PCH conflict when compiling a single file.

I have already "patched" my SE to fix these, but would be interested in a real fix when it is available.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Compile singe file broken
« Reply #1 on: September 29, 2008, 03:39:54 PM »
Thanks for the report.  I'll file a defect and fix the wchar_t flag, that one is easy.  The issue with the the define however, is problematic.  If it is not explicitly defined in the vcproj file, then how do you determine that the define is required?  What do we base that on?

UPDATE: NM, I just found the answer, there is an InheritedPropertySheets attribute that refers to a file that has additional tool settings.  We'll need to add code to extract all those attributes too and apply it to the command line.  I will file an additional defect to handle that, that one is going to require a bit more work.
« Last Edit: September 29, 2008, 04:13:07 PM by Lee »