Open GoogleCodeExporter opened 8 years ago
game-srv:/home/gmedia/source/ghost/ghost# make
g++ -o bnet.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
bnet.cpp
g++ -o bnetprotocol.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/
-c bnetprotocol.cpp
g++ -o bnlsclient.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
bnlsclient.cpp
g++ -o bnlsprotocol.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/
-c bnlsprotocol.cpp
g++ -o commandpacket.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/
-c commandpacket.cpp
g++ -o config.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
config.cpp
g++ -o crc32.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
crc32.cpp
g++ -o csvparser.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
csvparser.cpp
g++ -o game.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
game.cpp
g++ -o game_admin.o -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c
game_admin.cpp
game_admin.cpp: In member function ‘virtual bool
CAdminGame::EventPlayerBotCommand(CGamePlayer*, std::string, std::string)’:
game_admin.cpp:929:29: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:930:39: error: conversion from ‘boost::filesystem3::path’ to
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
game_admin.cpp:940:31: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:942:39: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:958:42: error: conversion from ‘boost::filesystem3::path’ to
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
game_admin.cpp:1040:29: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:1041:39: error: conversion from ‘boost::filesystem3::path’
to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
game_admin.cpp:1051:25: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:1053:33: error: ‘class boost::filesystem3::directory_entry’
has no member named ‘filename’
game_admin.cpp:1069:42: error: conversion from ‘boost::filesystem3::path’
to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
make: *** [game_admin.o] Error 1
Original comment by battos...@gmail.com
on 8 Sep 2011 at 4:29
just clean cache from make before then edit Makefile (path/to/src/ghost):
add +> CFLAGS = -I/usr/lib/ -I/path/to/boost_x_xx_x/
hope this clear your issue.
Original comment by bLa...@gmail.com
on 14 Sep 2011 at 11:06
Hey, just in case someone else needs a solution for this; just add this on top
of the problematic file:
#define BOOST_FILESYSTEM_VERSION 2
Source: http://www.boost.org/doc/libs/1_46_0/libs/filesystem/v3/doc/index.htm
Original comment by hookd...@gmail.com
on 2 Mar 2013 at 5:15
Original issue reported on code.google.com by
battos...@gmail.com
on 7 Sep 2011 at 6:40