[Mono-bugs] [Bug 479402] gmcs recognize only one of the DEFINE.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 26 06:08:58 EST 2009


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

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=479402#c1


Andy Hume <andyhume32 at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andyhume32 at yahoo.co.uk
         Resolution|                            |INVALID




--- Comment #1 from Andy Hume <andyhume32 at yahoo.co.uk>  2009-02-26 04:08:57 MST ---
Semicolon is a shell character, the shell uses it as command separator, so it
is trying to run a command called AAAA.  So you either have to escape the
semicolon, or use multiple -define options, e.g.
[[
$ gmcs WhichDefines.cs -define:AAA;BBB
WhichDefines.cs(2,1): warning CS1030: #warning: `AAA is defined'
WhichDefines.cs(10,1): warning CS1030: #warning: `BBB is not defined'
Compilation succeeded - 2 warning(s)
bash: BBB: command not found


$ gmcs WhichDefines.cs -define:AAA\;BBB
WhichDefines.cs(2,1): warning CS1030: #warning: `AAA is defined'
WhichDefines.cs(8,1): warning CS1030: #warning: `BBB is defined'
Compilation succeeded - 2 warning(s)


$ gmcs WhichDefines.cs -define:AAA -define:BBB
WhichDefines.cs(2,1): warning CS1030: #warning: `AAA is defined'
WhichDefines.cs(8,1): warning CS1030: #warning: `BBB is defined'
Compilation succeeded - 2 warning(s)
]]

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