problem with gdc for OSX?

Denis Koroskin 2korden at gmail.com
Sun Apr 19 03:18:43 PDT 2009


On Sun, 19 Apr 2009 12:37:11 +0400, MLT <none at anon.com> 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 )
>
> My program is this:
> import std.stdio ;
> int main()
> {
>         writefln("Hello world!\n") ;
> }
>
> What am I doing wrong?
>
>
>

Bad installation, I suppose. 'string' is defined in Object.d, which is automatically imported in each source file. Error is defined there, too. Looks like it can't find it. Make sure it does exist and paths are properly configured.

In a meanwhile try using DMD, it has OSX support now.



More information about the Digitalmars-d-learn mailing list