• 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!

Error while compiling

ekno333

New Member
Joined
Jan 30, 2009
Messages
11
Reaction score
0
Location
Sinaloa
Ive got an error while I was compiling the forgottenserver-0.2.7 rev81...




Code:
22 C:\xxx\xxx\xxx\forgottenserver-0.2.7\0.2.7\actions.cpp In file included from ../actions.cpp
236 C:\xxx\xxx\xxx\forgottenserver-0.2.7\0.2.7\const.h 'uint8_t' does not name a type 
264 C:\xxx\xxx\xxx\forgottenserver-0.2.7\0.2.7\const.h 'uint8_t' does not name a type
264 C:\xxx\xxx\xxx\forgottenserver-0.2.7\0.2.7\const.h *** [obj//actions.o] Error 1
I havent edited anything from const.h ;/!!

what should i do?
 
After changing uint8_t for unsigned char I got these errors:

27 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\itemloader.h:24, from ..\items.h In file included from ../itemloader.h:24, from ../items.h
26 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\items.h:27, from ..\item.h from ../items.h:27, from ../item.h
24 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\item.h:26, from ..\beds.h from ../item.h:26, from ../beds.h
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.h:24, from ..\beds.cpp from ../beds.h:24, from ../beds.cpp
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.cpp from ../beds.cpp
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.cpp In member function 'bool PropStream::GET_STRING(std::string&)':
249 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h 'memcpy' was not declared in this scope
249 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In member function 'bool PropStream::GET_LSTRING(std::string&)':
269 C:\xxxx\xxxx\xxxx\Desktop\forgottenserver-0.2.7\0.2.7\fileloader.h 'memcpy' was not declared in this scope
269 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In member function 'bool PropStream::GET_NSTRING(short unsigned int, std::string&)':
283 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h 'memcpy' was not declared in this scope
283 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In constructor 'PropWriteStream::PropWriteStream()':
313 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h 'memset' was not declared in this scope
313 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In member function 'void PropWriteStream::ADD_TYPE(T*)':
334 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
334 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
334 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In member function 'void PropWriteStream::ADD_STRING(const std::string&)':
367 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h 'memcpy' was not declared in this scope
367 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h In member function 'void PropWriteStream::ADD_LSTRING(const std::string&)':
383 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\fileloader.h 'memcpy' was not declared in this scope
24 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\item.h:26, from ..\beds.h In file included from ../item.h:26, from ../beds.h
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.h:24, from ..\beds.cpp from ../beds.h:24, from ../beds.cpp
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.cpp from ../beds.cpp
22 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\beds.cpp In constructor 'Abilities::Abilities()':
69 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\items.h 'memset' was not declared in this scope
69 C:\xxxx\xxxx\xxxx\forgottenserver-0.2.7\0.2.7\items.h *** [obj//beds.o] Error 1

u.u" some help ;(!!
 
I'm Using it.. with the forgottenserver-0.2.7 and the forgottenserver-0.2pl23 source codes.. and I've got same errors u.u"
 
Last edited:
Omg you are doing something wrong, I don't care what, but since <cstring> contains all of these undefinied functions it must work, there is no other explaination.
 
Back
Top