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.