"Learn to Tango with D" - The way to go?
torhu
no at spam.invalid
Fri Sep 19 13:42:59 PDT 2008
AEon wrote:
> Call it a sense of foreboding. I just tried to install Tango and compile
> the first example hello1.d from the "Learn to Tango with D" book:
>
> hello1.d
> --------
> import tango.io.Stdout;
> void main()
> {
> Stdout ("hello world").newline;
> }
>
>
> I cannot compile it under Windows XP Pro (SP3):
> ---
> E:\cygwin\home\Christoph\dt> dmd hello1.d
> OPTLINK (R) for Win32 Release 8.00.1
> Copyright (C) Digital Mars 1989-2004 All rights reserved.
> hello1.obj(hello1)
> Error 42: Symbol Undefined
> _D5tango2io6Stdout6StdoutC5tango2io5Print12__T5PrintTaZ5Print
> hello1.obj(hello1)
> Error 42: Symbol Undefined
> _D5tango2io5Print12__T5PrintTaZ5Print5printMFYC5tango2io5Print12__T5PrintTaZ5Print
> hello1.obj(hello1)
> Error 42: Symbol Undefined
> _D5tango2io5Print12__T5PrintTaZ5Print7newlineMFZC5tango2io5Print12__T5PrintTaZ5Print
> --- errorlevel 3
> ---
>
> I tried both the "Easy D" install (dmd-win32snaphot-0.6.2.exe; that
> contains Tango along with other libs), and also the manual Windows
> install (tango-0.99.7-bin-win32-dmd.1.033.zip) but the compiler error
> persists.
>
> I followed the
> http://dsource.org/projects/tango/wiki/WindowsInstall
> instructions...
You're not linking with tango-user-dmd.lib. How to do that is in those
instructions.
More information about the Digitalmars-d-learn
mailing list