- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc with libgdbm - can't compile
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
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
тАО08-13-2002 08:38 AM
тАО08-13-2002 08:38 AM
gcc with libgdbm - can't compile
g++ -g -c prog_a.cpp (this line is fine)
g++ -g -c prog_b.cpp (this line is fine too)
g++ -g -o prog prog_a.o prog_b.o /usr/local/lib/libgdbm.so (error with this line)
ld: Mismatched machine types. Expected EM_PARISC but found EM_IA_64 in file /usr/local/lib/libgdbm.so
The machine is running HP-UX 11i on RP8400 hardware.
I'd installed "gcc 3.0.2 for 64-bit 11.0 and 11i PA (binary)" and "gdbm for 11i Version 1.5 (binary)".
I'd tried to download "gdbm for 11i Version 1.5 (source)" to build the binary myself. but after building success, I can't find libgdbm.so in /usr/local/lib. But I can see a libgdbm.a file inside.
Had I done anything wrong? How to correct?
Any help would be appreciated. Thanks!
Andrew Lee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 08:48 AM
тАО08-13-2002 08:48 AM
Re: gcc with libgdbm - can't compile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 08:55 AM
тАО08-13-2002 08:55 AM
Re: gcc with libgdbm - can't compile
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 05:49 PM
тАО08-13-2002 05:49 PM
Re: gcc with libgdbm - can't compile
One more question:
This is where I download the library:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,549,00.html
I found these 2 versions, which one is for RISC? (I am using the first one)
1. gdbm for 11i Version 1.5 (binary)
2. gdbm for 11.0 and 11i (binary)
BTW, will it be my gcc problem? I'd installed 64-bit version. Will it conflicts with RISC?
Thanks for helping me.
Andrew Lee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 06:08 PM
тАО08-13-2002 06:08 PM
Re: gcc with libgdbm - can't compile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 06:57 PM
тАО08-13-2002 06:57 PM
Re: gcc with libgdbm - can't compile
As I am a newbie to C++ and HP-UX, I want to make sure one point:
Is the "gdbm for 11.0 and 11i (binary)" in 32-bit code? If yes, how to set the compiler flags to generate 32-bit code?
Any reference document? Thanks.
Andrew Lee