- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Compilation Errors
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 03:40 AM
тАО02-21-2006 03:40 AM
Compilation Errors
I am getting the following error while compiling the code on HP UNX machine which has aCC 3.57.
Error 698: Exact position unknown; near ["parser.C", line 194]. # The declarations "void *__catchTp_v[5]" and "void
*std::__catchTp_v[5]" are both visible and neither is preferred under the name lookup rules.
Error 445: "parser.C", line 194 # Cannot recover from earlier errors.
*** Error exit code 2
Can anybody please help me out on this ??
Earlier I have seen this error posted on this site long back but the solution given was code specific and not a general one.
Is there anything as a work around for the same on aCC 03.57 compiler.
Thanks,
Jaya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:40 AM
тАО02-21-2006 04:40 AM
Re: Compilation Errors
Make sure your declarations follow the ASCII syntax for variable names. Names like __catchTp_v[5] (with square brackets and colons in them are not permissible).
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 05:09 AM
тАО02-21-2006 05:09 AM
Re: Compilation Errors
There was a bug that was found and fixed towards the end of last year that was related to how the compiler handled namespaces.
I would suggest getting the latest version of the compiler installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 05:27 PM
тАО02-21-2006 05:27 PM
Re: Compilation Errors
This is a known defect in the compiler which is fixed in later versions. Please install A.03.60 or later (the latest is A.03.65) and your problem will go away.
Thanks!
-Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 04:46 AM
тАО03-07-2006 04:46 AM
Re: Compilation Errors
As the aCC 3.57 compiler has problems with namespaces we have added the following declaration in the file and it's dependency files:
namespace std {} using namespace std;
Adding the above declaration for namespace the code has successfully compiled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2006 10:15 AM
тАО07-13-2006 10:15 AM
Re: Compilation Errors
"Error 698: Exact position unknown; near ["foo.cpp", line 147]. # The declarations "void *__catchTp_v[5]" and "void
*std::__catchTp_v[5]" are both visible and neither is preferred under the name lookup rules."
The method being complained about is declared in a namespace in the header file, and defined in the same namespace. But so are other methods, so it might have something to do with the std::istream & param or std::string result. However, when I try to make a small test case, I can't reproduce the error (in the amount of time I've got).
foo.hpp:
namespace abc
{
class Xyz
{
public:
static std::string func( std::istream & is );
};
}
foo.cpp:
#include "foo.hpp"
namespace abc
{
std::string Xyz::func( std::istream & is )
{ return ""; }
}
Compiling with "aCC -etx -g0 -AA".
The workaround alluded to earlier, putting 'using namespace std;' in a header is not useable here: beyond the fundamental wrongness, it breaks other things.
And, as it turns out, what was needed was the removal of file-scope instances of "using namespace std;". Once I did that (and added "std::" to params, and function-scope "using namespace std;" as needed), the error disappeared -- which isn't too surprising when you read the error message.
Anyway, that last paragraph (and the fact that the error occurs with A.03.60) is the news here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2006 11:39 AM
тАО07-13-2006 11:39 AM
Re: Compilation Errors
s/aCC -etx/aCC -ext/
Larry