Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #957 (closed defect: invalid)

Opened 5 months ago

Last modified 5 months ago

tango.math.Math issue with float

Reported by: ElfQT Assigned to: larsivi
Priority: major Milestone: 0.99.6
Component: Core Functionality Version: 0.99.4 Frank
Keywords: math, float Cc:

Description

import tango.math.Math;

void main() {

float f1 = 1.0f; float fLength = sqrt(f1);

}

Produces:

Error 42: Symbol Undefined _D5tango4math4Math4sqrtFfZf

(tan, cos, sin also produces this)

Change History

03/02/08 12:58:38 changed by larsivi

  • owner changed from sean to larsivi.
  • status changed from new to assigned.

How does your command line look like? And if you have Tango in a library, could you see if tango.math.Math.o is there?

03/02/08 15:10:41 changed by ElfQT

The command line:

D:\D\workspace\test2\Tutorial8>dmd tangoMath.d D:\D\dmd\bin\link.exe tangoMath,user32+kernel32/noi; OPTLINK (R) for Win32 Release 8.00.1 Copyright (C) Digital Mars 1989-2004 All rights reserved. tangoMath.obj(tangoMath)

Error 42: Symbol Undefined _D5tango4math4Math4sqrtFfZf

--- errorlevel 1

I use "tango-0.99.4-bin-win32-dmd.1.024.zip", with no special settings. Don't know what "Tango in a library" means. I don't have "tango.math.Math.o" file. Other things are OK with Tango.

sc.ini: [Version] version=7.51 Build 020

[Environment] LIB="%@P%\..\lib" DFLAGS="-I%@P%\..\import" -version=Tango -defaultlib=tango-base-dmd.lib -debuglib=tango-base-dmd.lib LINKCMD=%@P%\link.exe

03/02/08 16:06:28 changed by larsivi

  • status changed from assigned to closed.
  • resolution set to invalid.

Please see this FAQ entry. You need to have tango-user-dmd.lib in your sc.ini for what you are trying to do to work. If that does not fix your issue, please reopen this ticket.