HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- C++ Template with string -> Compiler problem
Operating System - OpenVMS
1828207
Members
2186
Online
109975
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-13-2007 04:02 AM
06-13-2007 04:02 AM
C++ Template with string -> Compiler problem
Hello,
I'm Martin.
We are experiencing a compiler error with the following c++ line:
properties = new map;
properties is declared in the header as:
void* properties;
The funny thing now is, with our test-account it works, it compiles without any problems. Then there was a productive-account established and with that new account it does not compile with the errors attached in the txt-file. All on the same machine with the same compiler.
So we are using the C++ Standard Template in some other files too. There are no errors except we are using the Template with string ().
The accounts have been compared and are similar now (it seems). But still that compile error resists in the productive account.
Can it only be a permission problem of the users or what code issues can produce such a scenario ??
Thanks a lot in advance !
greets
Martin
I'm Martin.
We are experiencing a compiler error with the following c++ line:
properties = new map
properties is declared in the header as:
void* properties;
The funny thing now is, with our test-account it works, it compiles without any problems. Then there was a productive-account established and with that new account it does not compile with the errors attached in the txt-file. All on the same machine with the same compiler.
So we are using the C++ Standard Template in some other files too. There are no errors except we are using the Template with string (
The accounts have been compared and are similar now (it seems). But still that compile error resists in the productive account.
Can it only be a permission problem of the users or what code issues can produce such a scenario ??
Thanks a lot in advance !
greets
Martin
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 05:52 AM
06-13-2007 05:52 AM
Re: C++ Template with string -> Compiler problem
I suggest a deeper comparison of the test environment with the production environment. For example, compare the section labeled "Command Line" near the end of the listing file and make sure all the same compiler options are being used in both places. Compare the values of relevant logical names such as SRV$COPYLIB. Add /SHOW=INCLUDE to the compiler options and compare the listings to see if they are really getting the same versions of the same include files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 11:00 PM
06-19-2007 11:00 PM
Re: C++ Template with string -> Compiler problem
Hi,
so now I excluded the specific macro in a test program (attached) and then it was tried to compile on these different accounts.
I attach the listing files too.
But I can not find a difference between these accounts refering the compiling.
For the account srv_test it works, for the account csmprod it fails.
Attached (files.zip)
--------------------
program:
test_string.h, test_string.cpp
listing files from compiler:
test_csmprod.lis, test_srvtest.lis
greets
Martin
so now I excluded the specific macro in a test program (attached) and then it was tried to compile on these different accounts.
I attach the listing files too.
But I can not find a difference between these accounts refering the compiling.
For the account srv_test it works, for the account csmprod it fails.
Attached (files.zip)
--------------------
program:
test_string.h, test_string.cpp
listing files from compiler:
test_csmprod.lis, test_srvtest.lis
greets
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 11:56 PM
06-19-2007 11:56 PM
Re: C++ Template with string -> Compiler problem
Martin,
Your include path is different and as a result you pick up the wrong (a different) file in
include
May be others too.
I would first try in prod with the same /include as in test to see if it this (alone) is the problem. Then check the files in test subdirectory.
Wim
Your include path is different and as a result you pick up the wrong (a different) file in
include
May be others too.
I would first try in prod with the same /include as in test to see if it this (alone) is the problem. Then check the files in test subdirectory.
Wim
Wim
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP