E
Enos Meroka
Hallo,
I am a student doing my project in the university.. I have been trying
to compile the program using HP -UX aCC compiler, however I keep on
getting the following errors.
=================================================================
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerMessages.cc", line 3 # Unexpected 'std'.
using std::string;
^^^
CORBAManagerDefines.cc:
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerDefines.cc", line 3 # Unexpected 'std'.
using std::string;
^^^
CORBAManager.cc:
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 31 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 32 # Unexpected 'std'.
using std::map;
^^^
Error 19: "CORBAManager.h", line 33 # Unexpected 'std'.
using std::vector;
^^^
Error 20: "CORBAManager.h", line 104 # ';' expected before '::'.
typedef std:air<servanttype,service> paired_key;
^^
Error (future) 600: "CORBAManager.h", line 104 # Type specifier is
omitted; "int" is no longer assumed.
typedef std:air<servanttype,service> paired_key;
^^^^^^^
Error 178: "CORBAManager.h", line 137 # Nonstatic member
CORBAManagerNS::CORBAManager:aired_key" is referenced in a nested
class, local class or static member initializer.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 321: "CORBAManager.h", line 137 # A type argument was expected in
the specialization of template 'map'.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 343: "CORBAManager.h", line 93 # Class object 'iortable' neither
appears in base/member initializer list nor has a default
constructor.
CORBAManager():bSetUsername(false){}
^^^^^^^^^^^^
Error 112: "CORBAManager.cc", line 25 # Include file <sstream> not
found.
#include <sstream>
^^^^^^^^^
Error 112: "CORBAManager.cc", line 26 # Include file <iostream> not
found.
#include <iostream>
^^^^^^^^^^
Error 19: "CORBAManager.cc", line 29 # Unexpected 'std'.
using std::string;
^^^
Error 699: "CORBAManager.cc", line 29 # Error limit reached; halting
compilation.
using std::string;
^^^
corbatest.cc:
Error 112: "corbatest.cc", line 1 # Include file <iostream> not found.
#include <iostream>
^^^^^^^^^^
Error 112: "corbatest.cc", line 2 # Include file <sstream> not found.
#include <sstream>
^^^^^^^^^
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 31 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 32 # Unexpected 'std'.
using std::map;
^^^
Error 19: "CORBAManager.h", line 33 # Unexpected 'std'.
using std::vector;
^^^
Error 20: "CORBAManager.h", line 104 # ';' expected before '::'.
typedef std:air<servanttype,service> paired_key;
^^
Error (future) 600: "CORBAManager.h", line 104 # Type specifier is
omitted; "int" is no longer assumed.
typedef std:air<servanttype,service> paired_key;
^^^^^^^
Error 178: "CORBAManager.h", line 137 # Nonstatic member
CORBAManagerNS::CORBAManager:aired_key" is referenced in a nested
class, local class or static member initializer.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 321: "CORBAManager.h", line 137 # A type argument was expected in
the specialization of template 'map'.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 343: "CORBAManager.h", line 93 # Class object 'iortable' neither
appears in base/member initializer list nor has a default
constructor.
CORBAManager():bSetUsername(false){}
^^^^^^^^^^^^
Error 697: "corbatest.cc", line 10 # Only namespace names are valid
here.
using namespace std;
^^^
Error 699: "corbatest.cc", line 10 # Error limit reached; halting
compilation.
using namespace std;
^^^
*** Error exit code 2
================================================================
Below is part of the code that I have in one of the files
=================================================================
#include <fstream.h>
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <map>
//---------------------------------------------------------------------------
namespace std{};
using namespace std;
using std::string;
using std::map;
using std::vector;
using namespace CORBAManagerDefinesNS;
namespace CORBAManagerNS{
class CORBAManager{
public:
// Singleton access functions
static CORBAManager* Instance();
static void Destroy();
static void RefreshIN(int sig_num);
// IN Corba Interface Initialisation
=================================================================
I must admit that I tried reading the some earlier posted messages in
this forum about the namespace issues and tried to implement the
suggestions offered, but the error are still there.
Please assist me in identifying the problem and also in providing the
solution.
I am a student doing my project in the university.. I have been trying
to compile the program using HP -UX aCC compiler, however I keep on
getting the following errors.
=================================================================
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerMessages.cc", line 3 # Unexpected 'std'.
using std::string;
^^^
CORBAManagerDefines.cc:
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerDefines.cc", line 3 # Unexpected 'std'.
using std::string;
^^^
CORBAManager.cc:
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 31 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 32 # Unexpected 'std'.
using std::map;
^^^
Error 19: "CORBAManager.h", line 33 # Unexpected 'std'.
using std::vector;
^^^
Error 20: "CORBAManager.h", line 104 # ';' expected before '::'.
typedef std:air<servanttype,service> paired_key;
^^
Error (future) 600: "CORBAManager.h", line 104 # Type specifier is
omitted; "int" is no longer assumed.
typedef std:air<servanttype,service> paired_key;
^^^^^^^
Error 178: "CORBAManager.h", line 137 # Nonstatic member
CORBAManagerNS::CORBAManager:aired_key" is referenced in a nested
class, local class or static member initializer.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 321: "CORBAManager.h", line 137 # A type argument was expected in
the specialization of template 'map'.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 343: "CORBAManager.h", line 93 # Class object 'iortable' neither
appears in base/member initializer list nor has a default
constructor.
CORBAManager():bSetUsername(false){}
^^^^^^^^^^^^
Error 112: "CORBAManager.cc", line 25 # Include file <sstream> not
found.
#include <sstream>
^^^^^^^^^
Error 112: "CORBAManager.cc", line 26 # Include file <iostream> not
found.
#include <iostream>
^^^^^^^^^^
Error 19: "CORBAManager.cc", line 29 # Unexpected 'std'.
using std::string;
^^^
Error 699: "CORBAManager.cc", line 29 # Error limit reached; halting
compilation.
using std::string;
^^^
corbatest.cc:
Error 112: "corbatest.cc", line 1 # Include file <iostream> not found.
#include <iostream>
^^^^^^^^^^
Error 112: "corbatest.cc", line 2 # Include file <sstream> not found.
#include <sstream>
^^^^^^^^^
Error 19: "CORBAManagerDefines.h", line 7 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManagerMessages.h", line 4 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 31 # Unexpected 'std'.
using std::string;
^^^
Error 19: "CORBAManager.h", line 32 # Unexpected 'std'.
using std::map;
^^^
Error 19: "CORBAManager.h", line 33 # Unexpected 'std'.
using std::vector;
^^^
Error 20: "CORBAManager.h", line 104 # ';' expected before '::'.
typedef std:air<servanttype,service> paired_key;
^^
Error (future) 600: "CORBAManager.h", line 104 # Type specifier is
omitted; "int" is no longer assumed.
typedef std:air<servanttype,service> paired_key;
^^^^^^^
Error 178: "CORBAManager.h", line 137 # Nonstatic member
CORBAManagerNS::CORBAManager:aired_key" is referenced in a nested
class, local class or static member initializer.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 321: "CORBAManager.h", line 137 # A type argument was expected in
the specialization of template 'map'.
map<paired_key,serviceior> iortable;
^^^^^^^^^^
Error 343: "CORBAManager.h", line 93 # Class object 'iortable' neither
appears in base/member initializer list nor has a default
constructor.
CORBAManager():bSetUsername(false){}
^^^^^^^^^^^^
Error 697: "corbatest.cc", line 10 # Only namespace names are valid
here.
using namespace std;
^^^
Error 699: "corbatest.cc", line 10 # Error limit reached; halting
compilation.
using namespace std;
^^^
*** Error exit code 2
================================================================
Below is part of the code that I have in one of the files
=================================================================
#include <fstream.h>
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <map>
//---------------------------------------------------------------------------
namespace std{};
using namespace std;
using std::string;
using std::map;
using std::vector;
using namespace CORBAManagerDefinesNS;
namespace CORBAManagerNS{
class CORBAManager{
public:
// Singleton access functions
static CORBAManager* Instance();
static void Destroy();
static void RefreshIN(int sig_num);
// IN Corba Interface Initialisation
=================================================================
I must admit that I tried reading the some earlier posted messages in
this forum about the namespace issues and tried to implement the
suggestions offered, but the error are still there.
Please assist me in identifying the problem and also in providing the
solution.