UFO:Alien Invasion

Development => Coding => Topic started by: noob on July 29, 2006, 07:22:13 pm

Title: Q_strncpyz error
Post by: noob on July 29, 2006, 07:22:13 pm
... ok finally i compiled everything with devC++ with no problems
but when i tried to start a game windows error appeared
i think its connected with this bug in ref_gl which i fixed:
Quote
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
more undefined references to `Q_strncpyz' follow
ld returned 1 exit status
C:\Documents and Settings\Joe\My Documents\space\src\ref_gl\Makefile.win [Build Error] [../../ref_gl.dll] Error 1


what i did:
i added in every .c file in ref_gl.dev which said about "underfined reference" this:
Code: [Select]
#define Q_strncpyz(string1,string2,length)
and all compiled without problems, but game doesnt start normaly and fall down :(
what i did wrong?
Title: Q_strncpyz error
Post by: Bandobras on July 29, 2006, 07:30:10 pm
Today's SVN? What hour?
Title: Q_strncpyz error
Post by: noob on July 29, 2006, 07:32:19 pm
2211 revision
Title: Q_strncpyz error
Post by: noob on July 29, 2006, 07:39:51 pm
update: its not connected with revision, i did something wrong i think
maybe there is another RIGHT way to fix this bug?
Title: Q_strncpyz error
Post by: Bandobras on July 29, 2006, 09:53:31 pm
indeed, because 2211 is good...