- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc compiles c but not c++
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
11-04-2003 05:11 AM
11-04-2003 05:11 AM
gcc compiles c but not c++
I have downloaded gcc (3.3.1) and installed the depots. Using gcc I can compile c programs but not c++. I get:
/usr/ccs/bin/ld Unsatisfied symbols....
What have I forgotten? Also - can someone tell me how to use gcc instead of aCC? Can I just have a link for aCC that points to gcc?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 05:39 AM
11-04-2003 05:39 AM
Re: gcc compiles c but not c++
Just having a link will be not going to work, I believe.
For c++ you need to call g++.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:40 AM
11-05-2003 02:40 AM
Re: gcc compiles c but not c++
Could you please check if you can compile it with aCC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:43 AM
11-05-2003 02:43 AM
Re: gcc compiles c but not c++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:54 AM
11-05-2003 07:54 AM
Re: gcc compiles c but not c++
Paddy - I dont have aCC (which is why I am trying another c++ compiler) so I can't test it.
Mark - Pretty much all the symbols are unresolved - cout etc. I am guessing this is in the linking and not compiling. I did add the gcc-lib path to the LD_LIBRARY_PATH etc.