Thread overview | |||||
---|---|---|---|---|---|
|
December 23, 2003 [help] Error 42, Symbol Undefined | ||||
---|---|---|---|---|
| ||||
im getting a compiler error that says: Error 42: Symbol Undefined _D5basic9intrinsic7strings7StrConvFAaZAu An it looks like it cant find a function i made called StrConv() in basic.intrinsic.strings module, im using this function in my main module and i have: import basic.intrinsic.strings; at the top of it. I have double checked , and triple checked and i just cant understand why it isnt finding this function. Im using other functions also and it doesnt seem to have any trouble with those. Is there any options i should use in the compile command line that might help, or would anyone maybe have a few suggestions as to what commonly causes this error? regards lewis |
December 23, 2003 Re: [help] Error 42, Symbol Undefined | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lewis | Lewis wrote: > im getting a compiler error that says: > > Error 42: Symbol Undefined _D5basic9intrinsic7strings7StrConvFAaZAu > > An it looks like it cant find a function i made called StrConv() in basic.intrinsic.strings module, im using this function in my main module and i have: > > import basic.intrinsic.strings; > > at the top of it. I have double checked , and triple checked and i just cant understand why it isnt finding this function. Im using other functions also and it doesnt seem to have any trouble with those. > > Is there any options i should use in the compile command line that might help, or would anyone maybe have a few suggestions as to what commonly causes this error? > > regards > > lewis Looks like you need to add strings.d to the command line as either an extra .d source file. It'd probably look something like this: dmd mainProgram.d c:\dmd\src\basic\intrinsic\strings.d You should also be able to do relative paths: "dmd mainProgram.d basic\intrinsic\strings.d" or maybe "dmd mainProgram.d ..\basic\intrinsic\strings.d" or maybe even "dmd mainProgram.d ..\..\basic\intrinsic\strings.d" This might help. -- Justin http://jcc_7.tripod.com/d/ |
December 24, 2003 Re: [help] Error 42, Symbol Undefined | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | J C Calvarese wrote:
> Lewis wrote:
>
>> im getting a compiler error that says:
>>
>> Error 42: Symbol Undefined _D5basic9intrinsic7strings7StrConvFAaZAu
>>
>> An it looks like it cant find a function i made called StrConv() in basic.intrinsic.strings module, im using this function in my main module and i have:
>>
>> import basic.intrinsic.strings;
>>
>> at the top of it. I have double checked , and triple checked and i just cant understand why it isnt finding this function. Im using other functions also and it doesnt seem to have any trouble with those.
>>
>> Is there any options i should use in the compile command line that might help, or would anyone maybe have a few suggestions as to what commonly causes this error?
>>
>> regards
>>
>> lewis
>
>
> Looks like you need to add strings.d to the command line as either an extra .d source file. It'd probably look something like this:
>
> dmd mainProgram.d c:\dmd\src\basic\intrinsic\strings.d
>
> You should also be able to do relative paths:
> "dmd mainProgram.d basic\intrinsic\strings.d"
> or maybe "dmd mainProgram.d ..\basic\intrinsic\strings.d"
> or maybe even "dmd mainProgram.d ..\..\basic\intrinsic\strings.d"
>
> This might help.
>
cool thanks, ill try that...
|
Copyright © 1999-2021 by the D Language Foundation