FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot install arclib(problem with tango.text.regex)

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
czaber



Joined: 12 Feb 2008
Posts: 2

PostPosted: Tue Feb 12, 2008 8:37 pm    Post subject: Cannot install arclib(problem with tango.text.regex) Reply with quote

Hi!
I wanted to install arclib-tango-stable by dsss:
$ dsss net install arclib-tango-stable
and after fetching source code (revision 1370) I get errors like this:
Code:

arc/xml/xmlnode.d(249): function tango.text.Regex.RegExpT!(char).RegExpT.match (uint) does not match parameter types (char[])
arc/xml/xmlnode.d(249): Error: cannot implicitly convert expression (tag[cast(uint)pos..(tag.length)]) of type char[] to uint
arc/xml/xmlnode.d(249): Error: cannot implicitly convert expression ((_attribRe.match)(cast(uint)tag[cast(uint)pos..(tag.length)])) of type char[] to char[][]

(BTW. there was also an error with fromUtf8z, but after adding:
Code:

char[] fromUtf8z (char* s)
{
return fromStringz( s );
}

to tango/stdc/stringz.d it's gone.)
Probably errors in xmlnode.d are caused by changing meaning of match method in tango.text.regex after revision 3109.
(http://www.dsource.org/projects/tango/changeset/3109)
I suppose that, because it's connected with this line in xmlnode.d:
Code:

char[][] matches = _attribRe.match(tag[pos..tag.length]);

My configuration:
Code:

$ dsss
DSSS version 0.75

tango version - 1.025 for DMD

I would be very glad if you could tell me what's wrong with this.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Feb 12, 2008 10:41 pm    Post subject: Reply with quote

Hi,

The best solution for now is to use the current version of tango

http://downloads.dsource.org/projects/tango/0.99.4/tango-0.99.4-bin-win32-dmd.1.024.zip

to build ArcLib with.

You are using the latest and possibly unstable release of tango, and even when I fix the xmlnode.d file correctly, I get some horrible /PAGESIZE compiler crash.

If this doesn't help, feel free to post here.

~ Clay
Back to top
View user's profile Send private message AIM Address
czaber



Joined: 12 Feb 2008
Posts: 2

PostPosted: Wed Feb 13, 2008 2:24 am    Post subject: Reply with quote

After downloading http://downloads.dsource.org/projects/tango/0.99.4/tango-tangobos-0.99.4-bin-linux-dmd.1.024.tar.gz
and installing, building arc-tango-stable goes without any problems.
Thanks for your help!
Back to top
View user's profile Send private message
JonathanFeinberg



Joined: 24 Mar 2008
Posts: 1

PostPosted: Mon Mar 24, 2008 9:21 am    Post subject: Reply with quote

clayasaurus wrote:
Hi,

The best solution for now is to use the current version of tango

http://downloads.dsource.org/projects/tango/0.99.4/tango-0.99.4-bin-win32-dmd.1.024.zip

to build ArcLib with.


Code:

C:\D\dmd-tango-0.99.4>dmd -v
Digital Mars D Compiler v1.024

C:\D\dmd-tango-0.99.4>dsss
DSSS version 0.75

C:\D\dmd-tango-0.99.4>dsss installed
derelictal
derelictft
derelictgl
derelictglu
derelictogg
derelictsdl
derelictsdlimage
derelictutil
derelictvorbis
dsss
net-tango

C:\D\dmd-tango-0.99.4>dsss net install arclib-tango-stable
Synchronizing...
+ curl -s -S -k http://dsss.brainsware.org/sources/source.list -o c:\D\dsss-0.75-dmd-win\share\dsss\sources\source.list
-z c:\D\dsss-0.75-dmd-win\share\dsss\sources\source.list
+ curl -s -S -k http://dsss.brainsware.org/sources/pkgs.list -o c:\D\dsss-0.75-dmd-win\share\dsss\sources\pkgs.list -z c
:\D\dsss-0.75-dmd-win\share\dsss\sources\pkgs.list
+ curl -s -S -k http://dsss.brainsware.org/sources/mirrors.list -o c:\D\dsss-0.75-dmd-win\share\dsss\sources\mirrors.lis
t -z c:\D\dsss-0.75-dmd-win\share\dsss\sources\mirrors.list

Working in c:\D\dsss-0.75-dmd-win\tmp\DSSS_arclib-tango-stable
+ svn export http://svn.dsource.org/projects/arclib/branches/arc02/tango/arclib/
A    arclib
A    arclib\dsss.conf
A    arclib\arc
A    arclib\arc\scenegraph
A    arclib\arc\scenegraph\animation.d
A    arclib\arc\scenegraph\advancable.d
A    arclib\arc\scenegraph\drawable.d
A    arclib\arc\scenegraph\mousenotify.d
A    arclib\arc\scenegraph\root.d
A    arclib\arc\scenegraph\text.d
A    arclib\arc\scenegraph\node.d
A    arclib\arc\scenegraph\sprite.d
A    arclib\arc\scenegraph\all.d
A    arclib\arc\scenegraph\frame.d
A    arclib\arc\scenegraph\transform.d
A    arclib\arc\time.d
A    arclib\arc\input.d
A    arclib\arc\texture.d
A    arclib\arc\physics
A    arclib\arc\physics\colliders
A    arclib\arc\physics\colliders\circle.d
A    arclib\arc\physics\colliders\all.d
A    arclib\arc\physics\colliders\box.d
A    arclib\arc\physics\colliders\boxcircle.d
A    arclib\arc\physics\drawphysics.d
A    arclib\arc\physics\shapes
A    arclib\arc\physics\shapes\circle.d
A    arclib\arc\physics\shapes\line.d
A    arclib\arc\physics\shapes\all.d
A    arclib\arc\physics\shapes\box.d
A    arclib\arc\physics\physics.d
A    arclib\arc\physics\joint.d
A    arclib\arc\physics\mybody.d
A    arclib\arc\physics\world.d
A    arclib\arc\physics\all.d
A    arclib\arc\physics\arbiter.d
A    arclib\arc\physics\quadtree.d
A    arclib\arc\physics\collide.d
A    arclib\arc\text
A    arclib\arc\text\slicereader.d
A    arclib\arc\text\all.d
A    arclib\arc\text\routines.d
A    arclib\arc\text\slicewriter.d
A    arclib\arc\gui
A    arclib\arc\gui\layout.d
A    arclib\arc\gui\themes
A    arclib\arc\gui\themes\freeuniverse.d
A    arclib\arc\gui\themes\theme.d
A    arclib\arc\gui\themes\all.d
A    arclib\arc\gui\gui.d
A    arclib\arc\gui\widgets
A    arclib\arc\gui\widgets\textbox.d
A    arclib\arc\gui\widgets\label.d
A    arclib\arc\gui\widgets\image.d
A    arclib\arc\gui\widgets\widget.d
A    arclib\arc\gui\widgets\types.d
A    arclib\arc\gui\widgets\all.d
A    arclib\arc\gui\widgets\button.d
A    arclib\arc\gui\all.d
A    arclib\arc\gui\readxml.d
A    arclib\arc\types.d
A    arclib\arc\font.d
A    arclib\arc\math
A    arclib\arc\math\rect.d
A    arclib\arc\math\matrix.d
A    arclib\arc\math\angle.d
A    arclib\arc\math\arcfl.d
A    arclib\arc\math\all.d
A    arclib\arc\math\routines.d
A    arclib\arc\math\point.d
A    arclib\arc\math\size.d
A    arclib\arc\math\collision.d
A    arclib\arc\window.d
A    arclib\arc\all.d
A    arclib\arc\draw
A    arclib\arc\draw\color.d
A    arclib\arc\draw\shape.d
A    arclib\arc\draw\image.d
A    arclib\arc\draw\all.d
A    arclib\arc\templates
A    arclib\arc\templates\array.d
A    arclib\arc\templates\singleton.d
A    arclib\arc\templates\dlinkedlist.d
A    arclib\arc\templates\redblacktree.d
A    arclib\arc\templates\all.d
A    arclib\arc\templates\flexsignal.d
A    arclib\arc\internals
A    arclib\arc\internals\input
A    arclib\arc\internals\input\joystick.d
A    arclib\arc\internals\input\keyboard.d
A    arclib\arc\internals\input\signals.d
A    arclib\arc\internals\input\all.d
A    arclib\arc\internals\input\mouse.d
A    arclib\arc\internals\input\constants.d
A    arclib\arc\internals\font
A    arclib\arc\internals\font\BoxPacker.d
A    arclib\arc\internals\font\all.d
A    arclib\arc\internals\font\FontCache.d
A    arclib\arc\xml
A    arclib\arc\xml\xml.d
A    arclib\arc\xml\xmlnode.d
A    arclib\arc\xml\all.d
A    arclib\arc\xml\error.d
A    arclib\arc\xml\misc.d
A    arclib\arc\xml\xmlstream.d
A    arclib\arc\memory
A    arclib\arc\memory\freelist.d
A    arclib\arc\memory\all.d
A    arclib\arc\memory\routines.d
A    arclib\arc\sound.d
Exported revision 1393.
Creating imports for arc

arc => arc
+ c:\D\dsss-0.75-dmd-win\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -Ic:\D\dsss-0.75-dmd-win\include\d -Sc:\D\dsss-0.75-dm
d-win\lib\  -Ic:\D\dsss-0.75-dmd-win\include\d -Sc:\D\dsss-0.75-dmd-win\lib  -oqdsss_objs\D -O -release -inline  -explic
it -lib arc\all.d arc\draw\all.d arc\draw\color.d arc\draw\image.d arc\draw\shape.d arc\font.d arc\gui\all.d arc\gui\gui
.d arc\gui\layout.d arc\gui\readxml.d arc\gui\themes\all.d arc\gui\themes\freeuniverse.d arc\gui\themes\theme.d arc\gui\
widgets\all.d arc\gui\widgets\button.d arc\gui\widgets\image.d arc\gui\widgets\label.d arc\gui\widgets\textbox.d arc\gui
\widgets\types.d arc\gui\widgets\widget.d arc\input.d arc\internals\font\all.d arc\internals\font\BoxPacker.d arc\intern
als\font\FontCache.d arc\internals\input\all.d arc\internals\input\constants.d arc\internals\input\joystick.d arc\intern
als\input\keyboard.d arc\internals\input\mouse.d arc\internals\input\signals.d arc\math\all.d arc\math\angle.d arc\math\
arcfl.d arc\math\collision.d arc\math\matrix.d arc\math\point.d arc\math\rect.d arc\math\routines.d arc\math\size.d arc\
memory\all.d arc\memory\freelist.d arc\memory\routines.d arc\physics\all.d arc\physics\arbiter.d arc\physics\collide.d a
rc\physics\colliders\all.d arc\physics\colliders\box.d arc\physics\colliders\boxcircle.d arc\physics\colliders\circle.d
arc\physics\drawphysics.d arc\physics\joint.d arc\physics\mybody.d arc\physics\physics.d arc\physics\quadtree.d arc\phys
ics\shapes\all.d arc\physics\shapes\box.d arc\physics\shapes\circle.d arc\physics\shapes\line.d arc\physics\world.d arc\
scenegraph\advancable.d arc\scenegraph\all.d arc\scenegraph\animation.d arc\scenegraph\drawable.d arc\scenegraph\frame.d
 arc\scenegraph\mousenotify.d arc\scenegraph\node.d arc\scenegraph\root.d arc\scenegraph\sprite.d arc\scenegraph\text.d
arc\scenegraph\transform.d arc\sound.d arc\templates\all.d arc\templates\array.d arc\templates\dlinkedlist.d arc\templat
es\flexsignal.d arc\templates\redblacktree.d arc\templates\singleton.d arc\text\all.d arc\text\routines.d arc\text\slice
reader.d arc\text\slicewriter.d arc\texture.d arc\time.d arc\types.d arc\window.d arc\xml\all.d arc\xml\error.d arc\xml\
misc.d arc\xml\xml.d arc\xml\xmlnode.d arc\xml\xmlstream.d -ofarc.lib
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\internals\input\joystick.d(90): Error: undefined identifier fromStringz
arc\internals\input\joystick.d(90): Error: function expected before (), not fromStringz of type int
arc\internals\input\joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)
(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc\internals\input\joystick.d(90): Error: cannot implicitly convert expression (((*this).isOpen)() ? fromStringz((*SDL_
JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc\texture.d(146): Error: undefined identifier fromStringz
arc\texture.d(146): Error: function expected before (), not fromStringz of type int
arc\texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStr
ingz((*SDL_GetError)()))): 'char[]' and 'int'
arc\texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc\texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc\texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ":
" ~ fromStringz((*SDL_GetError)())) of type int to char[]
Command c:\D\dsss-0.75-dmd-win\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.
Back to top
View user's profile Send private message
stealth



Joined: 06 May 2007
Posts: 9

PostPosted: Mon Mar 24, 2008 1:15 pm    Post subject: Reply with quote

In arc/xml/xmlnode.d at line 249

Code:
            char[][] matches = _attribRe.match(tag[pos..tag.length]);
            for (int i = 0; i < matches.length; i++)
            {
                // cheap hack.
                char[][] blah = _attribSplitRe.split(matches[i]);
                result ~= blah[0];
                result ~= blah[1];
            }

should be replaced with
Code:
         foreach (match; _attribRe.search(tag[pos..tag.length])) {
                char[][] blah = _attribSplitRe.split(match.match(0));
                result ~= blah[0];
                result ~= blah[1];
         }
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Mar 24, 2008 1:43 pm    Post subject: Reply with quote

Thanks stealth. Arc now compiles with the latest tango.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group