Error 42: Symbol Undefined

jicman jicman_member at pathlink.com
Thu May 11 09:03:38 PDT 2006


Ok, so I have been using build and I have been working perfectly fine, until
today, when I want to use DDoc and tried using

dmd -I.. -D test.d

I get,

11:50:42.85>dmd -I.. test.d
.\jic\libs\MyLibTest.d(3): no identifier for declarator PrintHello
.\jic\libs\MyLibTest.d(3): semicolon expected, not '{'
.\jic\libs\MyLibTest.d(3): Declaration expected, not '{'
.\jic\libs\MyLibTest.d(5): unrecognized declaration

11:55:02.08>dmd -I.. test.d
c:\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

test.obj(test)
Error 42: Symbol Undefined _D3jic4libs9MyLibTest10PrintHelloFZAa
--- errorlevel 1

source code is simple,

11:55:28.87>type test.d

private import jic.libs.MyLibTest;
int main(char[][] args)
{
PrintHello();
return 1;
}

and

11:58:08.13>type ..\jic\libs\MyLibTest.d
module jic.libs.MyLibTest;
char[] PrintHello()
{
printf("Hello\n");
}

I tried to see what options I could use, but somehow, the -I option for dmd is
not finding ..\jic\libs\.

Any ideas?

thanks.

josé






More information about the Digitalmars-d-learn mailing list