Lisp like lists and a problem with TANGO fromStringz
Bjoern
nanali at nospam-wanadoo.fr
Sun Mar 2 08:52:08 PST 2008
Jarrett Billingsley schrieb:
> "Bjoern" <nanali at nospam-wanadoo.fr> wrote in message
> news:fqea2o$tnj$1 at digitalmars.com...
>> Undefined Symbol ... fromStringz
>> Hi
>> even after spending a few hours I was not able to figure out where I
>> made an mistake.
>>
>> The error msg as follows :
>>
>> C:\dmd\projects\bsdutil>dmd lisplist
>> C:\dmd\bin\link.exe lisplist,,,user32+kernel32/noi+tango-user-dmd.lib;
>> OPTLINK (R) for Win32 Release 8.00.1
>> Copyright (C) Digital Mars 1989-2004 All rights reserved.
>> lisplist.obj(lisplist)
>> Error 42: Symbol Undefined _D5tango4stdc7stringz11fromStringzFPaZAa
>> --- errorlevel 1
>>
>> somehow :) nagged, hope somebody is willing to help
>> Many thanks in advance :
>> Bjoern
>
> If you're not using Tango trunk (that is, you're using the 0.99.4 release),
> it's called "fromUtf8z". They just forgot to rename it.
>
> If that doesn't work, well hell.
>
>
fromUtf8z results in undefined identifier ...
Ah, the joy of Sunday afternoon programming :)
As workaround I use :
alias bool function(char*, char*) CompFunc;
bool string_compare(char* a, char* b)
{
return ( a[0 .. strlen(a)] == b[0 .. strlen(b)] );
//return (fromStringz(a) == fromStringz(b));
}
Thanks Jarret, have a nice day
B
More information about the Digitalmars-d
mailing list