Rhorin / ghostplusplus

Automatically exported from code.google.com/p/ghostplusplus
Other
0 stars 0 forks source link

erro compiling #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compiling ghost++
2.
3.

What is the expected output? What do you see instead?
game-srv:/home/gmedia/source/ghost/ghost# make
g++ -o bncsutilinterface.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ 
-I../StormLib/ -c bncsutilinterface.cpp
g++ -o bnet.o  -O3 -DGHOST_MYSQL -I. -I../bncsutil/src/ -I../StormLib/ -c 
bnet.cpp
bnet.cpp: In member function ‘void 
CBNET::ProcessChatEvent(CIncomingChatEvent*)’:
bnet.cpp:1666:31: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1667:41: error: conversion from ‘boost::filesystem3::path’ to 
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
bnet.cpp:1677:33: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1679:41: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1695:44: error: conversion from ‘boost::filesystem3::path’ to 
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
bnet.cpp:1777:31: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1778:41: error: conversion from ‘boost::filesystem3::path’ to 
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
bnet.cpp:1788:27: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1790:35: error: ‘class boost::filesystem3::directory_entry’ has no 
member named ‘filename’
bnet.cpp:1806:44: error: conversion from ‘boost::filesystem3::path’ to 
non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
make: *** [bnet.o] Error 1

What version of the product are you using? On what operating system?

17.1 on debian 5.0

Please provide any additional information below.

Original issue reported on code.google.com by battos...@gmail.com on 7 Sep 2011 at 6:40

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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