- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error #2247: member has already been defined
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
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
тАО12-09-2008 08:20 AM
тАО12-09-2008 08:20 AM
error #2247: member has already been defined
aCC +DD64 -AA -z -g -mt -DSTD_AA +Z -I. -I../inc -I../../../lib/db_ob/inc -I../../../lib/utility/inc -I../../../lib/xml/inc -c xlator_11.cpp
"xlator_11.cpp", line 30: error #2247: member "xlator_11::factory9_" has
already been defined
xlator_11::factory9_("MIS_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
^
"xlator_11.cpp", line 30: error #2018: expected a ")"
xlator_11::factory9_("MIS_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
^
Code in the xlator.cpp in line 30(here I am copying from line 25+-) are:
aggregate_factory
xlator_11::factory8_("MIS_IND_ADMIN_ADD", new(nothrow) xlator_11("8", false));
aggregate_factory
xlator_11::factory9_("PDB_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
aggregate_factory
xlator_11::factory9_("MIS_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
aggregate_factory
xlator_11::factory10_("PDB_IND_UPD", new(nothrow) xlator_11("3", false, true));
aggregate_factory
xlator_11::factory11_("MIS_IND_UPD", new(nothrow) xlator_11("3", false, true));
Now I can see its call factory9 twice but my guess since its working in 32 why its giving me an error in 64? is there a syntax change that i need to do for the 64 compiler to understand this code?
- Tags:
- duplicate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 01:36 PM
тАО12-09-2008 01:36 PM
Re: error #2247: member has already been defined
xlator_11::factory9_("PDB_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
aggregate_factory
xlator_11::factory9_("MIS_IND_ALIAS_ADD", new(nothrow) xlator_11("1", false, true));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 04:06 PM
тАО12-09-2008 04:06 PM
Re: error #2247: member has already been defined
Have you compiled your application in 32 bit mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 06:41 AM
тАО12-10-2008 06:41 AM
Re: error #2247: member has already been defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 11:41 AM
тАО12-10-2008 11:41 AM
Re: error #2247: member has already been defined
The aCC6 compiler is better at catching errors, aCC5 ignored the duplicate.
Before you ported to 64 bit, have you compiled with aCC6 just to see what messages you got?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 11:47 AM
тАО12-10-2008 11:47 AM
Re: error #2247: member has already been defined
I am not sure what version of acc they have used for the old system.
one thing is if i commented out the 2nd line it compiles but i am afraid that the application will not do what it suppose to do if i comment out lines like these, as they have used same kind of duplicate declration in many places....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 12:32 PM
тАО12-10-2008 12:32 PM
Re: error #2247: member has already been defined
It is obsolete aCC5.
>but I am afraid that the application will not do what it suppose to do if I comment out lines like these
aCC5 seems to ignore the second one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 01:12 PM
тАО12-10-2008 01:12 PM
Re: error #2247: member has already been defined
OLD:
aCC: HP ANSI C++ B3910B A.03.63
New:
aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 01:30 PM
тАО12-10-2008 01:30 PM
Re: error #2247: member has already been defined
This is aCC3, it has the similar problems as aCC5.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2008 06:53 AM
тАО12-11-2008 06:53 AM
Re: error #2247: member has already been defined
Hopefully this will work.