- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- gcc g++ on hpux won't compile (can't find stdint)
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-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