r6711 texture.cpp doesnt compile

Issues that were previously reported and since dealt with.
Forum rules
This issue tracker is now in read-only mode. Please see this topic for more information on how to contribute to Red Eclipse.

r6711 texture.cpp doesnt compile

Postby freezurbern » 29 Sep 2014 00:55

Code: Select all
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags`   -c -o engine/shadowmap.o engine/shadowmap.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags`   -c -o engine/sound.o engine/sound.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags`   -c -o engine/texture.o engine/texture.cpp
engine/texture.cpp: In function 'bool texturedata(ImageData&, const char*, Slot::Tex*, bool, int*, TextureAnim*)':
engine/texture.cpp:1222:40: error: 'matchstring' was not declared in this scope
engine/texture.cpp:1261:39: error: 'matchstring' was not declared in this scope
make: *** [engine/texture.o] Error 1
make: Leaving directory `/home/jenkins/workspace/redeclipse-svn/src'
Build step 'Execute shell' marked build as failure
Skipped archiving because build is not successful
IRC notifier plugin: Sending notification to: #freezurbern
Finished: FAILURE
Posts: 641
Joined: 02 Feb 2014 18:01

Re: r6711 texture.cpp doesnt compile

Postby shacknetisp » 29 Sep 2014 01:03

As a temporary fix, add
Code: Select all
#define matchstring(a,b,c) !strncmp(a,c,b)

to the top of engine/texture.h
User avatar
Posts: 177
Joined: 21 Sep 2014 01:48

Re: r6711 texture.cpp doesnt compile

Postby qreeves » 29 Sep 2014 03:00

Give eihrul a prod, he broke it :p Fixed. Closing issue.
Quinton Reeves | Lead Developer, Red Eclipse
Check Out My YouTube Channel | Leave Me a Tip on PayPal
Contribute to Project Costs via PayPal or Patreon
User avatar
Site Admin
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Return to Closed Issues