Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I use libg++?

Posted on 1997-05-29
1
Medium Priority
?
247 Views
Last Modified: 2012-05-04
I have the most recent g++ compiler and libg++ on my Linux system.  I want to use the classes described in the documentation such as stacks and queues.  There are header files in /usr/include/g++ such as stack.h.  However, when I put

#include <stack.h>
stack stk;

into my program, I get a parsing error on the second line.  Furthermore, there is a /usr/include/g++/gen directory with a lot of .ccP and .hP files.  I think that these files actually have the classes that I want to use.

How can I use these classes?  

Thanks in advance!

Jeff Shirer
0
Comment
Question by:jshirer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Morgoth earned 100 total points
ID: 1163746
Try typing -lg++ as a parameter when you compile, other than that, I can only guess that perhaps you haven't set it up properly(the directory structure).

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question