• 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 `list´ in namespace `std´ does not name a type

LegerianOT

Pixel damaged
Joined
Mar 25, 2014
Messages
503
Reaction score
68
I feel like I've tried pretty much everything.

I still get this error while compiling a TFS in linux:
PHP:
In file included from otserv.cpp:24:0:
server.h:111:9: error: ‘list’ in namespace ‘std’ does not name a type
  const std::list<uint16_t> get_ports();

Does anyone have any ideas or suggestion what to try?

Any reply is appreciated! even if you maybe doesn't know the problem, your idea might give me ideas for new tries :)
 
Nvm this, I figured it out.

includes in game.cpp was in wrong order.
moving server.h down a few rows solved the problem.
 
Back
Top