- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: aC++ compiling functions with $ in name
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
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
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-03-2004 01:14 AM
12-03-2004 01:14 AM
I am using HP aC++/ANSI C B3910B A.05.38 [Sep 12 2002] on HP-UX B.11.22 U ia64. I am compiling a C++ file which includes a header file as a wrapper for my C++ to Fortran functions. In my header file, for example, I have:
extern "C" void m$myfunc_ (int& myint);
void m_myfunc (int& myint)
{
m$myfunc_(myint);
}
When I compile the file I get an Error 92, it doesn't like the '$' character.
I had a similar problem with Solaris C++ v5.3 and solved it by adding the '-Xm' flag. I found a nice document on HP's site comparing the Solaris C++ to aC++ but there was no corresponding flag for '-Xm' to allow the '$' character.
Does anyone know a workaround to this, am I missing something, or is this a total loss? It is not possible for me to remove the '$' references because it is throughout my Fortran code (and there is a lot).
I appreciate any help that anyone can give. Please let me know if there is any other information needed that I failed to provide.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2004 02:02 AM
12-03-2004 02:02 AM
Solutionhttp://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
Get the latest compiler
This was fixed for pa-risc in the new
HP-UX 11i v1.6 (B.11.22) (for Itanium® 2-based systems)
Compiler Version A.05.55 HP C Available in January 2004 as Patch PHSS_30023
» PHSS_30023
patch fix list
» PHSS_30024
u2comp/be patch patch
» PHSS_30211
linker cumulative patch
» PHSS_30212
libm cumulative patch
» PHSS_28975
milli.a cumulative patch
» PHSS_30125
unwind library cumulative patch
You must already have A.05.36 installed in order to install PHSS_30023.
PHSS_30023 has many defect fixes for HP-UX 11i v1.6 (B.11.22) release and supports new features.
PHSS_30024 is only needed for +O4 (or +O3 for libm inlining) and the new -ipo option.
PHSS_30024 also requires PHSS_30211.
Compiler Version A.05.55 for HP aC++ Available in January 2004 as Patch PHSS_30022
» PHSS_30022
» patch fix list
» PHSS_30210
aC++ runtime patch
» PHSS_30024
u2comp/be patch
» PHSS_30211
linker cumulative patch
» PHSS_30212
libm cumulative patch
» PHSS_28975
milli.a cumulative patch
» PHSS_30215
unwind cumulative patch
You must already have A.05.36 installed in order to install PHSS_28977.
PHSS_30022 has many defect fixes for HP-UX 11i v1.6 (B.11.22) release.
PHSS_30024 is only needed for +O4 (or +O3 for libm inlining) and the new -ipo option.
PHSS_30024 also requires PHSS_30211.
PHSS_30210 fixes several memory leaks. Installing PHSS_30210 may require installing the latest gdb to handle a demangling change.
PHSS_30215 is needed to fix a memory leak on throw.
The librwtool runtime library matches Rogue Wave Version 7.0.6.
The libstd runtime library matches Rogue Wave Version 1.2.1.
The libstd_v2 runtime library matches Rogue Wave Version 2.02.01.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2004 05:05 AM
12-03-2004 05:05 AM
Re: aC++ compiling functions with $ in name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 12:31 AM
12-06-2004 12:31 AM
Re: aC++ compiling functions with $ in name
Here is my test program with output:
mytest.cc
#include
using namespace std;
int main();
void m$testm();
int main()
{
cout << "Hello World from C++!" << endl;
m$testm();
return 1;
}
void m$testm()
{
cout << "Hello World from m$testm" << endl;
}
Output:
Error 92: "mytest.cc", line 5 # Character '$' (value 36) was unexpected.
void m$testm();
^
Error 92: "mytest.cc", line 10 # Character '$' (value 36) was unexpected.
m$testm();
^
Error 20: "mytest.cc", line 5 # '
void m$testm();
^
Error 452: "mytest.cc", line 5 # Objects may not have void type.
void m$testm();
^
Error 19: "mytest.cc", line 9 # Unexpected ';'.
cout << "Hello World from C++!" << endl;
^
Error 224: "mytest.cc", line 9 # Arguments do not match with any function 'endl'.
cout << "Hello World from C++!" << endl;
^^^^^
Error 92: "mytest.cc", line 15 # Character '$' (value 36) was unexpected.
void m$testm()
^
Error 20: "mytest.cc", line 15 # '
void m$testm()
^
Error 173: "mytest.cc", line 15 # Redefined symbol '
void m$testm()
^
Error 452: "mytest.cc", line 15 # Objects may not have void type.
void m$testm()
^
Error 24: "mytest.cc", line 16 # ',' expected instead of '{'.
{
^
Error 452: "mytest.cc", line 17 # Objects may not have void type.
cout << "Hello World from m$testm" << endl;
^^^^
Error 699: "mytest.cc", line 17 # Error limit reached; halting compilation.
cout << "Hello World from m$testm" << endl;
^^^^
I am fairly confident that the other errors will go away once the '$' issue is resolved. Thanks for any help you can give.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2012 02:19 PM
01-09-2012 02:19 PM
Re: aC++ compiling functions with $ in name
>I patched aC++ to A.05.55. Is there some compiler flag I should be passing through?
If you are on aCC3 or aCC5, you must pass in -ext. For aCC6 and PA HP C, it's enabled by default.