D - [help] Error 42, Symbol Undefined
- Lewis (13/13) Dec 23 2003 im getting a compiler error that says:
- J C Calvarese (12/33) Dec 23 2003 Looks like you need to add strings.d to the command line as either an
- Lewis (2/39) Dec 24 2003 cool thanks, ill try that...
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
Dec 23 2003
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 lewisLooks 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/
Dec 23 2003
J C Calvarese wrote:Lewis wrote:cool thanks, ill try that...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 lewisLooks 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.
Dec 24 2003