Error 42: Symbol Undefined

jicman jicman_member at pathlink.com
Thu May 11 14:32:06 PDT 2006


Jarrett Billingsley says...
>
>"jicman" <jicman_member at pathlink.com> wrote in message 
>news:e3vn8q$1nnb$1 at digitaldaemon.com...
>> 11:58:08.13>type ..\jic\libs\MyLibTest.d
>> module jic.libs.MyLibTest;
>> char[] PrintHello()
>> {
>> printf("Hello\n");
>> }
>
>Well, you're not linking this file in anywhere, as far as I can see.  You'll 
>have to put either its source file or its object file on the command line. 

You mean that I have to do,

dmd -D -I.. test.d ..\jic\libs\MyLibTest.d

Is this correct?  So, if I have 10 library files (..\jic\libs\MyLibTest0-9.d) I
have to add them all to the command?  I.e.

dmd -D -I.. test.d ..\jic\libs\MyLibTest0.d ..\jic\libs\MyLibTest1.d
.\jic\libs\MyLibTest2.d ..\jic\libs\MyLibTest3.d ..\jic\libs\MyLibTest4.d
.\jic\libs\MyLibTest5.d ..\jic\libs\MyLibTes6.d ..\jic\libs\MyLibTest7.d
.\jic\libs\MyLibTest8.d ..\jic\libs\MyLibTest9.d

If so, what does the -I option does then?  Sorry to be so unwise at this, but
build does all of that for me. :-)  And I have been using build since the Good
Lord brought me to D.

thanks for the help





More information about the Digitalmars-d-learn mailing list