[linux, ubuntu] personal D module not found in the same directory

le TeXnicien de surface le.texnicien.de.surface at chezmoi.invalid
Tue Jun 26 10:23:58 PDT 2012


On Tuesday, 26 June 2012 at 17:14:07 UTC, Jesse Phillips wrote:
> On Tuesday, 26 June 2012 at 16:55:56 UTC, le TeXnicien de 
> surface wrote:
>
>> and I obtain this message:
>>
>> jeteste.o: In function `_Dmain':
>> jeteste.d:(.text._Dmain+0x1e): undefined reference to
>> `_D4truc5carreFdZd'
>> collect2: ld a retourné 1 code d'état d'exécution
>> --- errorlevel 1
>>
>> where do I err?
>>
>> any hint would be greatly appreciated
>>
>> many thanks in advance
>
> D uses a Compile -> link model (like most). You have hit a 
> linker error, it can not link to an object you haven't given. 
> But on that the compiler only compiled one file.
>
> dmd allFiles.d Of.d theProject.d
>
> This will compile the files and pass them to the linker. You 
> can learn about linking to find out how to handle libraries.

Thank you very much.
I really was at my wit's end :(




More information about the Digitalmars-d-learn mailing list