www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - gdc and tango

reply Jason House <jason.james.house gmail.com> writes:
I'm trying to build a program recently ported to tango with gdc.

For whatever reason, when building in either linux or cygwin (windows), I get
"Unsupported environment; neither Win32 or Posix is declared"

Under cygwin, gdmd -version=Win32 results in 
"Error: version identifier 'Win32' is reserved and cannot be set"

Any tips on how to do this properly?
Aug 01 2007
parent Sean Kelly <sean f4.ca> writes:
Jason House wrote:
 I'm trying to build a program recently ported to tango with gdc.
 
 For whatever reason, when building in either linux or cygwin (windows), I get
 "Unsupported environment; neither Win32 or Posix is declared"

When building against a Posix API, you need to define version=Posix. I do this in dmd.conf when using DMD, but I'm not sure how to do so with GDC.
 Under cygwin, gdmd -version=Win32 results in 
 "Error: version identifier 'Win32' is reserved and cannot be set"
 
 Any tips on how to do this properly?

See above. The weird one is mingw, which should actually have Win32 defined. Sean
Aug 01 2007