- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Compilation problem with HP UNIC GCC
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
тАО11-29-2007 04:22 PM
тАО11-29-2007 04:22 PM
Re: Compilation problem with HP UNIC GCC
You still need g++ to link.
>My idea is not to cause any conflicts between the lib file and the code which i want to compile with g++
Mangling issues have to be solved with source changes, as Steven mentions.
>Since both are GNU compilers i think there should not be any conflicts?
It's the same ABI.
>Steven: then you'll probably need to do some reading on how to combine C and C++ programs.
See the following:
http://docs.hp.com/en/10946/otherlangs.htm#callinghpc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 10:01 PM
тАО11-29-2007 10:01 PM
Re: Compilation problem with HP UNIC GCC
Thank you very much for your support
thanks and regards
Vikram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 04:18 AM
тАО11-30-2007 04:18 AM
Re: Compilation problem with HP UNIC GCC
Now, why didn't I think of that? No, wait.
I did.
On the other hand:
dy # g++ ex1.cpp
ex1.cpp: In function 'int main()':
ex1.cpp:5: error: 'cout' was not declared in this scope
ex1.cpp:5: error: 'endl' was not declared in this scope
These errors can be solved by two ways:
1) using namspace std directive.
2) changing #include
The second one will give a warning though, as using iostream.h is depricated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 06:43 AM
тАО11-30-2007 06:43 AM
Re: Compilation problem with HP UNIC GCC
You forgot qualification:
std::cout <<" Hello World "<< std::endl;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 04:46 PM
тАО11-30-2007 04:46 PM
Re: Compilation problem with HP UNIC GCC
- « Previous
-
- 1
- 2
- Next »