bugCal3D - 3d character animation library - Bugs: bug #12184, Cally demo will not compile

 
 
Show feedback again

bug #12184: Cally demo will not compile

Submitted by:  None
Submitted on:  Thu 14 Aug 2008 10:10:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 14 Aug 2008 10:10:35 PM UTC, original submission:

The cally demo (cally-2.11.0.tar.gz) will not compile on Fedora 9 Linux with gcc-c++-4.3.0-8.

This was the error message:

make -k
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT demo.o -MD -MP -MF .deps/demo.Tpo -c -o demo.o demo.cpp
demo.cpp: In member function ‘bool Demo::loadTexture(const std::string&, GLuint&)’:
demo.cpp:131: error: ‘strrchr’ was not declared in this scope
demo.cpp:131: error: ‘strcasecmp’ was not declared in this scope
demo.cpp: In member function ‘bool Demo::onCreate(int, char**)’:
demo.cpp:248: error: ‘strcmp’ was not declared in this scope
make: *** [demo.o] Error 1
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT model.o -MD -MP -MF .deps/model.Tpo -c -o model.o model.cpp
model.cpp: In member function ‘GLuint Model::loadTexture(const std::string&)’:
model.cpp:141: error: ‘strrchr’ was not declared in this scope
model.cpp:141: error: ‘strcasecmp’ was not declared in this scope
make: *** [model.o] Error 1
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT menu.o -MD -MP -MF .deps/menu.Tpo -c -o menu.o menu.cpp
mv -f .deps/menu.Tpo .deps/menu.Po
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT tick.o -MD -MP -MF .deps/tick.Tpo -c -o tick.o tick.cpp
mv -f .deps/tick.Tpo .deps/tick.Po
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -ffast-math -funroll-all-loops -g -O2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT tga.o -MD -MP -MF .deps/tga.Tpo -c -o tga.o tga.cpp
mv -f .deps/tga.Tpo .deps/tga.Po
make: Target `all' not remade because of errors.

------------------------------------

The solution is easy: just add in demo.h

#include <cstring>

(I notice there is somewhere "#include <string>" which might
no longer be necessary.)

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup