problem with gdc for OSX?

Anders F Björklund afb at algonet.se
Tue Apr 21 03:13:54 PDT 2009


MLT wrote:
> Sorry, this could be a bug report and not a question, and probably the wrong place to post it then.
> 
> I installed gdc according to the instructions given in http://www.dsource.org/projects/tango/wiki/MacOSXInstall
> from http://sourceforge.net/project/downloading.php?group_id=135857&filename=gdc-trunk-r229-
> mac-10.5.dmg&a=83983351
> 
> Install went well, compiling tango went well. Compiling programs with tango works well.
> However, now when I try to compile the simplest program that uses std.stdio I get many errors, starting
> with:
> ldblcompat.d:36: Error: identifier 'string' is not defined
> 
> (below it, many complaints about string not defined, and also
> include/d/4.0.1/std/format.d:75: Error: Error is used as a type )

How did you install Tango ? Not with the package but manual, I take it ?

> My program is this:
> import std.stdio ;
> int main()
> {
>         writefln("Hello world!\n") ;
> }
> 
> What am I doing wrong?

That looks like a Phobos program, maybe you need Tangobos (std.compat) ?

--anders


More information about the Digitalmars-d-learn mailing list