- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cross platform C++ compiling
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-02-2006 08:23 PM
03-02-2006 08:23 PM
Cross platform C++ compiling
i've developed a concurrent server in C++ on the Linux platform.
Now i have to make it available on the HP-UX platform.
I'm using STL, pthreads and some other POSIX funtions...
On the Linux platform, compiling works out fine, on the HP-UX i'm experiencing some difficulties.
I think most of my errors can be solved by setting all compiler options right.
I'm using the book "Advanced Unix Programming", but it doesn't say anything about compiling with STL and such...
Is there some (online?) documentation available on using HP-UX. g++ online?
Our HP-Ux version:
HP-UX B.11.00 A 9000/785
gcc version:
gcc version 2.95.3 20010315 (release)
Any help would be very appreciated...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:31 PM
03-02-2006 08:31 PM
Re: Cross platform C++ compiling
for a common problem:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=838354
For all the HP Documentation please see:
http://www.docs.hp.com/cgi-bin/search
Are you up-to-date on all patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:32 PM
03-02-2006 08:32 PM
Re: Cross platform C++ compiling
Since Gcc is non hp
http://gcc.gnu.org/
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2504,00.html
is hp stuff
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:35 PM
03-02-2006 08:35 PM
Re: Cross platform C++ compiling
Are you trying to build a cross compiler using GCC ? or you are building separeltely on HP-UX ?
http://devresource.hp.com/drc/index.jsp
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 01:17 AM
03-03-2006 01:17 AM
Re: Cross platform C++ compiling
i'm not designing a cross compiler, i just want to compile my source files (.cpp), which work on Linux, on the HP-UX server.
I'm not allowed to install any patches
This is my Makefile:
# ****************************************
# Makefile for Separate Compilation Example
# Compiler: GNU C++ compiler
# Linker: /usr/bin/ld
# *****************************************************
# Parameters to control Makefile operation
# no errors -> -w
# all errors -> -Wall
# -Aa -> ANSI C
# -O -> optimalisation
# -D_XOPEN_SOURCE_EXTENDED -w -D_HPUX_SOURCE
CXX = g++
#CXXcommon = -lstdc++ -w -D_POSIX_C_SOURCE=199309L -MM -xc++ -Dunix
#CXXcommon = -lstdc++ -fpic -shared -w -static -D_POSIX_C_SOURCE=199309L -MM -xc++ -Dunix
CXXcommon = -fexceptions -lpthread -Wall -lstdc++ -features=castop
#-shared -fPIC
CXXFLAGS = -c
CXXFLAGSserv = -lpthread
# ****************************************************
# Entries to bring the executable up to date
server: server.cpp ASICclient.o ASIChost.o Connection.o Listener.o Networkfunctions.o ASICexception.o ASICserver.o Debug.o PSgen.o server.o network.h
$(CXX) $(CXXcommon) $(CXXFLAGSserv) -o server ASICclient.o ASIChost.o Connection.o Listener.o Networkfunctions.o ASICexception.o ASICserver.o Debug.o PSgen.o server.o
# server.o : server.cpp
# $(CXX) $(CXXcommon) $(CXXFLAGS) server.cpp
clean:
rm -rf *.o *.so
mrproper:
rm -rf *.o *.so a.out server
# ****************************************
as you can see, i've tried a lot of options (commented out) because everywhere on the Internet i find other options to set.
Actually, the situation has become more trial-and-error, that's why i asked for clear documentation online...