- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compilation error using template vector
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
Forums
Discussions
Discussions
Discussions
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
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
03-08-2005 11:22 PM
03-08-2005 11:22 PM
Compilation error using template vector
I am trying to compile my appl source code on HP UX 11 using aCC compiler. My source code has references to STL vector template etc. I am getting the following error during compliation
The following is the compilation command and the error
aCC -O +Z -DNO_STD_NAMESPACE -DUNIX -DNO_PRAGMA -DFAO_PMF_STYLE -I. -I/var/peop
le/synergy/esisoft/VISUAL_CRASH/DevEnv/inc/xmlparser -I/var/people/synergy/esiso
ft/VISUAL_CRASH/DevEnv/inc/xmlparser/include -I/usr/local/ux11/include/python2.
3 -I/usr/local/include/python2.3 -D_HOST_ENV -DNO_STD_NAMESPACE -DHPUX -DHP -D
PAM_HP -I/opt/graphics/OpenGL/include -D__hpux -D_REENTRANT -D_HPUX_SOURCE -D_FI
LE_OFFSET_BITS=64 -DSECURITY_ENV=1 -I/lyon/meltem_9/esisoft/pamflex/v2003_9.0.0/
include -DSWIG_COBJECT_TYPES -c dmtools/weld/GenericMwfIO.cpp -o /var/people/s
ynergy/esisoft/bin/host_env_devV4/obj/vdb/ux11_optimized/GenericMwfIO.o
Error 173: "/usr/include/sys/times.h", line 47 # Redefined symbol 'times';
previously defined at ["/opt/aCC/include/functional", line 112].
extern clock_t times(struct tms *);
Please let me know how to correct this error.
Thanks in advance,
Raghav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 11:42 PM
03-08-2005 11:42 PM
Re: Compilation error using template vector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 11:53 PM
03-08-2005 11:53 PM
Re: Compilation error using template vector
The aCC version is
aCC: HP ANSI C++ B3910B A.03.30
Thanks,
Raghav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 12:08 AM
03-09-2005 12:08 AM
Re: Compilation error using template vector
If not, you can try to remove the definition from one of the included files.
Worked for me once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 12:15 AM
03-09-2005 12:15 AM
Re: Compilation error using template vector
The "times" variable is defined in /usr/include/sys/times.h and /opt/aCC/include/functional headers. The functional header i think got included thro' the #include
How can i remove the definition of times from the system header files or rather how to undefine it thro' my source code
We need to compile using native HP aCC compiler.
Is it possible that a newer patch of aCC would have fixed this issue?
Thanks,
Raghav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 12:38 AM
03-09-2005 12:38 AM
Re: Compilation error using template vector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 12:58 AM
03-09-2005 12:58 AM
Re: Compilation error using template vector
I think the __cplusplus will be defined by the aC++ compiler. Do we need to redefine the same?
Thanks,
Raghav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 01:10 AM
03-09-2005 01:10 AM
Re: Compilation error using template vector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 01:49 AM
03-09-2005 01:49 AM
Re: Compilation error using template vector
The __cplusplus is defined. I however got a link to an info
"http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,432,00.html"
which has a workaround for this issue and it worked for me.
It involves setting the __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL defines
Thanks,
Raghav