+1 Peter Kowalski · January 17, 2015
Whenever i run my program with classes in seprate files i keep on getting a problem that says Error: Expected Initalizer before 'namespace' .... However when i run the program a C++ Config File apears and the problem is in that.... i dont know what to do to fix it.... (  the file name is c++config.h) oh and i use Ubuntu

Post a Reply


Oldest  Newest  Rating
0 Earl Hudson · January 17, 2015
Without having any code posted, it's hard to see what the problem is. Perhaps you don't have them shared properly.
Maybe you are using the wrong library. Post a little code and lets see what can be figured out.
0 Peter Kowalski · January 17, 2015
For full details see:
namespace std
  typedef __SIZE_TYPE__     size_t;
  typedef __PTRDIFF_TYPE__    ptrdiff_t;

#if __cplusplus >= 201103L
  typedef decltype(nullptr)    nullptr_t;

// Defined if inline namespaces are used for versioning.


The Problem Is at the top where is says namespace std......

The error is as i said earlier Error: Expected Initalizer before 'namespace'

The problem is in the file c++config.h And when i tried to edit the program to ad the ; it wont allow me because i dont have the correct premissions even though i am the administrator
  • 1



Used in many types of software including music players, video games, and many large scale applications.

Bucky Roberts Administrator