Symbol undefined due to import statement

torhu no at spam.invalid
Mon Aug 15 01:24:38 PDT 2011


On 15.08.2011 10:15, Andre wrote:
...
> I compile the application with command:
> dmd -IC:\Projects\Reusuable main.d
>
> This works, but if I now edit the http.d file
> and add an import statement like "import std.stdio;"
> then the linker will output following error:
>
>    main.obj(main)
>    Error 42: Symbol Undefined _D3net4http12__ModuleInfoZ
>
> Where is my error?

You need to add all your project's files to the command line:

dmd -IC:\Projects\Reusuable main.d net\http.d



More information about the Digitalmars-d-learn mailing list