LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 03-19-2008, 12:27 PM   #1
nano2
Member
 
Registered: May 2007
Posts: 100

Rep: Reputation: 15
GCC 3.4.6 issue with namespaces names


Hi ,
I am using gcc3.4.6 and having an issue with collisioning of namespaces
I am using two seperate namespaces , one is in thirdparty library code and then my own code I am using my own name space but i get the following error
/usr/local64/include/xercesc/dom/DOMException.hpp:211: error: use of `ExceptionCode' is ambiguous
/home/t/cvs/a/src/A/include/acexceptions.h:44: error: first declared as `enum ACTypes::ExceptionCode' here
/home/t/cvs/a/src/A/include/pursetypes.h:6: error: also declared as `typedef int PurseManager::ExceptionCode' here
In file included from /usr/local64/include/xercesc/dom/DOM.hpp:116,


I don't want to change the thirdparty code , Is there a gcc flag that I can force it to stop it complaining as this works with other compilers solaris and hp and later versions of Gcc 4.1.X

Please advise .

Thanks
 
Old 03-19-2008, 03:40 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You already have another thread regarding this issue, to this one is closed.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb shows <<C++-namespaces>> dayalan_cse Programming 1 12-28-2006 11:10 AM
Newb stuck on namespaces (C++) rusty_turkey Programming 2 06-08-2006 10:11 PM
C++: recursive #including: partial namespaces? R00ts Programming 4 03-09-2005 12:15 AM
Namespaces ChemicalBurn Programming 10 02-16-2005 09:49 AM
using multiple namespaces over in C++ R00ts Programming 1 09-22-2004 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration