www.digitalmars.com         C & C++   DMDScript  

D - [help] Error 42, Symbol Undefined

reply Lewis <dethbomb hotmail.com> writes:
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
parent reply J C Calvarese <jcc7 cox.net> writes:
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/
Dec 23 2003
parent Lewis <dethbomb hotmail.com> writes:
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...
Dec 24 2003