bzfed help 2

Discussion, updates, modifications, etc for the various map editors...
Post Reply
User avatar
Army of One
Private First Class
Private First Class
Posts: 62
Joined: Tue Jan 25, 2005 1:11 am
Contact:

bzfed help 2

Post by Army of One »

Thanks again bzflag community for all your help-I didn't want to bother you to much-I did a lot of research on the internet and found and fixed most of the errors-the only one i could not fix or find a solution to on my own is posted below-I am using the lasted open suse 11.1 and trying to compile bzfed on my linux machine. Thanks so much in advance

Army of One

texture_manager.h:21: error: ‘string’ is not a member of ‘std’
texture_manager.h:21: error: ‘string’ is not a member of ‘std’
texture_manager.h:21: error: template argument 1 is invalid
texture_manager.h:21: error: template argument 3 is invalid
texture_manager.h:21: error: template argument 4 is invalid
texture_manager.h:21: error: invalid type in declaration before ‘;’ token
model.cpp: In member function ‘virtual void LinkModel::render(bool, bool, double)’:
model.cpp:849: warning: deprecated conversion from string constant to ‘char*’
model.cpp:890: warning: deprecated conversion from string constant to ‘char*’
make[2]: *** [model.o] Error 1
make[2]: Leaving directory `/home/Todd/Documents/bzfed-0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Todd/Documents/bzfed-0.1'
make: *** [all] Error 2
Todd@linux-i5m5:~/Documents/bzfed-0.1>
Some times you see me-some times you don't--and DESTRUCTION is only moments away
User avatar
Runic
Private First Class
Private First Class
Posts: 23
Joined: Fri Jul 02, 2004 8:51 pm

Re: bzfed help 2

Post by Runic »

Sorry :doh: , I should have told you to place the "#include <stdlib.h>" in the texture_manager.h file instead of the texture_manager.cpp file.

texture_manager.cpp includes texture_manager.h so it only needs to be in texture_manager.h

Give that a try and see how far you get
BZFlag ROCKS!!!
User avatar
RatOmeter
Private First Class
Private First Class
Posts: 13
Joined: Thu Jul 14, 2005 9:46 pm

Re: bzfed help 2

Post by RatOmeter »

One Man Army,

Per our in-game chat, I took a look.

I got bzfed to compile, had to edit the following files to include missing header files:

base.cpp
#include <stdlib.h>
#include <string.h>

box.cpp
#include <string.h>

link.cpp
#include <stdlib.h>


model.cpp
#include <iostream>

pyramid.cpp
#include <string.h>

teleporter.cpp
#include <stdlib.h>

texture_manager.cpp
#include <malloc.h>

tga.cpp
#include <stdlib.h>
#include <malloc.h>
User avatar
Runic
Private First Class
Private First Class
Posts: 23
Joined: Fri Jul 02, 2004 8:51 pm

Re: bzfed help 2

Post by Runic »

FYI, The includes are not really missing,
it just the compiler being used is not automatically including stdlib.h, etc. for you, so you need to do it manually.

I don't believe I had to change anything to compile it for X11 on Mac OS X.
It been quite a long time since I did, so I could be mistaken,
but I don't remember it giving me any grief, if it did it wasn't much.

I never did really use it to make a map though, as I found using a plain text editor much more appealing and flexible in the long run.
BZFlag ROCKS!!!
Post Reply