On Sun, 19 Apr 2009 12:37:11 +0400, MLT <[email protected]> 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.

Reply via email to