Problem trying to use 2 header files

I am trying to test out cuchar and codecvt headers from the c-library and other library at http://www.cplusplus.com/reference/cuchar/ but then it says that they are not found I am using code::blocks 12.11 with the GNU GCC compiler and I have enabled g++ c++11 ISO under the compiler settings. Is the default GNU compiler for code::blocks outdated or are these two libraries not supposed by it?

-Giblit
Also why does isblank only work when I put -std=gnu++0x in the other options btw the g++ thing I was talking about was under the flags I have only that and the g++ c++0x ISO enabled but I can't use isblank with out having that little bit of code in the other otpions I found the answer here http://stackoverflow.com/questions/6528595/how-can-i-get-codeblocks-to-compile-with-std-c0x-with-gcc but I don't know why it works on the reference for isblank it says that is is part of c++11.
On 4th page so bump :/ also I don't know if this should be in a new thread or not but what benefited is using a colon after a function name and setting values vs settingm in it and what is that called ex
1
2
void setValue( const unsigned short width , const unsigned short height) : x( width ) , y( height )
{ }
vs
1
2
3
4
5
void setValue( const unsigned short width , const unsigned short height )
{
    x = width;
    y = height;
}



Thanks,Giblit.
The first is an initializer list. The variables are initialized with the values as they are created. The second method does not initialize the variables. Instead, it assigns values to the variables after they have been created.

One situation where this difference is important is with const values.
1
2
3
4
5
6
struct MyThing{
   const int mynum;
   MyThing(){
      mynum = 34;  //Will not compile because you cannot arbitrarily change a const value
   }
};

versus
1
2
3
4
5
struct MyThing{
   const int mynum;
   MyThing():mynum(34)   //Will compile fine because 34 is used to initialize and is not assigned to mynum
   {}
};


Edit: Dunno bout your original problem. The cuchar and uchar.h header libraries are completely missing from mine, but I use gcc in mingw.
Last edited on
Oh cool did not know that and have any suggestions about using those headers? Or libraries I suppose they called
Last edited on
I searched through Code::Block's bug report forum and tried looking for information on mingw. All I found was an email from 2011 detailing the same problem but no resolution. I sent a bug report to Code::Blocks asking them to support the cuchar library.
Oh alright cool thanks and I didn't even know code blocks had a forum I was just trying to search for why it wasn't supporting some c++11 libraries.
Topic archived. No new replies allowed.