- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: gcc g++ on hpux won't compile (can't find stdi...
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
08-28-2007 05:04 AM
08-28-2007 05:04 AM
gcc g++ on hpux won't compile (can't find stdint)
I am trying to get started with some very basic c++ coding on my hpux system.
But I am stuck at square one. I cannot even compile "hello world"
g++ returns an error that says it cannot find stdint.h (which I am not even including so it must be included by iostream)
Any advice?
Thanks
- Tags:
- g++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:01 AM
08-28-2007 08:01 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:23 AM
08-28-2007 08:23 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
Can you say where you got gcc and what version it is? If it is depot software, run swverify against it and see if its even installed correcty.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:26 AM
08-28-2007 08:26 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
I found on my own that stdint.h is on the system (and was installed by gcc because it is under the file structure that gcc created)
I created a ln -s to that stdint.h into /usr/include
Now my code compiles fine.
I don't know that this is correct but it worked.
Any thoughts.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:31 AM
08-28-2007 08:31 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
The correct solution is to add a -I path to the gcc version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:34 AM
08-28-2007 08:34 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
Can you give me some pointers on that?
I have searched for and found a lot of documentation on g++ and c++ coding but nothing on actually using g++ on hpux specifically addressing issues like this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:43 AM
08-28-2007 08:43 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
You found the header in some directory. Just add -Ifull-directory-path to your compile line.
The same as any other -I option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:48 AM
08-28-2007 08:48 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
I can use -L (capital) on the gcc 'compile' line and that does work.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 08:57 AM
08-28-2007 08:57 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
This is for lib paths. -I is for include paths.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2007 03:44 AM
08-29-2007 03:44 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 06:02 AM
08-30-2007 06:02 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
This is a fresh install of hp-ux pa 11.11 patched up through the gold pack of early '07.
I am using gcc-4.2.1-hppa-11.11.depot that I got from the Utah HP porting center.
I also tried adding, from the porting center, gettext-0.16.1, libiconv-1.11, make-3.81, and from itrc, PHKL_29243, PHSS_34880, and PHSS_35383.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 06:15 AM
08-30-2007 06:15 AM
Re: gcc g++ on hpux won't compile (can't find stdint)
/usr/local/libexec/gcc/hppa2.0w-hp-hpux11.11/4.2.1/install-tools/mkheaders
If you have a different GCC version or are on a different OS the path may be slightly different. Try running this mkheaders command, it will reexamine the system headers and update the GCC specific versions of those headers to match what is on your system. You will probably need to be root to do this and it will modify your GCC header files so you might want to back them up or if you still have the depot you could restore them using that if something got messed up. mkheaders should not change any files except ones that are part of the GCC installation.
- Tags:
- mkheaders