About Store Forum Documentation Contact



Post Reply 
include headers in linux
Author Message
mixpro Offline
Member

Post: #1
include headers in linux
Hi,
im trying to use STL headers , i tried including them as in the video :
Include headers

but when i type std:: the only option i get is nullptr .
when forcing the issue :
Code:
std::string s("ghgh");

i get :

Quote:error: 'string' is not a member of 'std'

i looked at std definition in the engine i found :
Code:
#if !WINDOWS_NEW
namespace std{typedef decltype(nullptr) nullptr_t;}
#endif

does this mean , STL libraries aren't supported on non windows ?
How can i include them in linux ? thanks [/code]
04-17-2016 05:37 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: include headers in linux
I recommend using engine's Str string class or Str8 for 8-bit characters, your life will be easier.

Quote:error: 'string' is not a member of 'std'
Perhaps you need to include more headers on Linux?
04-18-2016 01:24 AM
Find all posts by this user Quote this message in a reply
Post Reply