• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling waitlist.cpp and waitlist.h

magista

RL name " Amir reda "
Joined
Jul 22, 2011
Messages
157
Solutions
1
Reaction score
21
Location
Egypt
hi guys

i'm trying to compile trunk.r3884 and i use dev-c++ 4.9.9.2
and i have these errors
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\root\Desktop\trunk.r3884\dev-cpp\Makefile.win"
Executing  make...
mingw32-make -f "C:\Users\root\Desktop\trunk.r3884\dev-cpp\Makefile.win" all
g++.exe -c ../waitlist.cpp -o obj//waitlist.o -I"C:/Users/root/Desktop/Dev-Cpp/include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

In file included from ../waitlist.cpp:18:
../waitlist.h:28: error: ISO C++ forbids declaration of 'list' with no type

../waitlist.h:28: error: typedef name may not be a nested-name-specifier
../waitlist.h:28: error: expected unqualified-id before '<' token
../waitlist.h:50: error: 'WaitList' has not been declared
../waitlist.h:50: error: ISO C++ forbids declaration of 'iterator' with no type
../waitlist.h:50: error: expected ';' before 'find'
../waitlist.h:53: error: 'WaitList' does not name a type
../waitlist.h: In destructor 'virtual WaitingList::~WaitingList()':
../waitlist.h:34: error: 'waitList' was not declared in this scope

../waitlist.cpp: At global scope:
../waitlist.cpp:28: error: 'WaitList' has not been declared

../waitlist.cpp:28: error: expected constructor, destructor, or type conversion before 'WaitingList'

mingw32-make: *** [obj//waitlist.o] Error 1

Execution terminated
waitlist.h
http://pastebin.com/ghZPt2Kp
waitlist.cpp
http://pastebin.com/fqnN6zmB

could any1 help me plz
 
Try adding:

PHP:
#include <list>
#include <string>
#include <stdint.h>

in waitlist.h after

PHP:
#ifndef __WAITLIST__
#define __WAITLIST__

and before

PHP:
struct Wait
{
 
Try adding:

PHP:
#include <list>
#include <string>
#include <stdint.h>

in waitlist.h after

PHP:
#ifndef __WAITLIST__
#define __WAITLIST__

and before

PHP:
struct Wait
{
thx for help but i have now this

Code:
Compiler: Default compiler
Building Makefile: "C:\Users\root\Desktop\trunk.r3884\dev-cpp\Makefile.win"
Executing  make...
mingw32-make -f "C:\Users\root\Desktop\trunk.r3884\dev-cpp\Makefile.win" all
g++.exe -c ../waitlist.cpp -o obj//waitlist.o -I"C:/Users/root/Desktop/Dev-Cpp/include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../weapons.cpp -o obj//weapons.o -I"C:/Users/root/Desktop/Dev-Cpp/include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

windres.exe -i TheForgottenServer_private.rc --input-format=rc -o obj//TheForgottenServer_private.res -O coff

g++.exe obj//actions.o obj//admin.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemanager.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//dispatcher.o obj//exception.o obj//fileloader.o obj//game.o obj//gameservers.o obj//globalevent.o obj//group.o obj//house.o obj//housetile.o obj//ioban.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//itemattributes.o obj//items.o obj//luascript.o obj//mailbox.o obj//manager.o obj//map.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocolhttp.o obj//protocollogin.o obj//protocolold.o obj//quests.o obj//raids.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Users/root/Desktop/Dev-Cpp/lib" -lboost_system -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s -lboost_filesystem -lboost_thread -lz -lcryptopp -leay32 

obj//tools.o:tools.cpp:(.text+0x1435): undefined reference to `_imp__xmlFree'
obj//tools.o:tools.cpp:(.text+0x1477): undefined reference to `_imp__xmlFree'
obj//tools.o:tools.cpp:(.text+0x14c2): undefined reference to `_imp__xmlFree'
obj//tools.o:tools.cpp:(.text+0x2e35): undefined reference to `_imp__xmlFree'
obj//tools.o:tools.cpp:(.text+0x3052): undefined reference to `_imp__xmlFree'
collect2: ld returned 1 exit status

mingw32-make: *** [TheForgottenServer.exe] Error 1

Execution terminated
 
Back
Top