[Mono-bugs] [Bug 347187] New: xbuild issue with multiple /define symbols

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Dec 9 13:49:06 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=347187


           Summary: xbuild issue with multiple /define symbols
           Product: Mono: Compilers
           Version: 1.2.6
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: karl at waclawek.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


On Unbuntu 7.10, xbuild generates a commandline for gmcs like that:
  gmcs ... /define:OPTION1;OPTION2;OPTION3;...

This seems to confuse the shell, as gmcs only recognizes the first option,
and I get errors like this for the other options:

bash: OPTION2: command not found
bash: OPTION3: command not found

Workaround: enclose in quotes, like this, *omitting the last semi-colon*:

  gmcs ... /define:"OPTION1;OPTION2;OPTION3"...

If you don't leave out the last semi-colon, you get another error:

  warning CS2029: Invalid conditional define symbol `'


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list