Symbol undefined

Ali Çehreli acehreli at yahoo.com
Thu Jan 30 13:33:38 PST 2014


On 01/30/2014 01:28 PM, Martijn Pot wrote:
> I'm starting to use D out of curiousity. I've used both Eclipse + DDT
> and Visual Studio + visualD and both give the same error in my second
> test program (second to Hello World of course...) using the
> Transmogrifier/CardboardBox example from TDPL :
>
>   Error 42: Symbol Undefined _D1a14Transmogrifier12transmogrifyMFZv
> (void a.Transmogrifier.transmogrify())
>
> Am I not linking module a (containing Transmogrifier and CardboardBox)?
> How can I get either or both IDE's running my test program?

You must include a.d on the build line.

   dmd a.d main.d ...

Ali



More information about the Digitalmars-d-learn mailing list