I have configure and install common c++ in my Linux system as followS:
1) "./configure --prefix=/home/me/common" and "make install" is run at /home/me/software/CommonC++1.1.5/
2) then, "make" is run at /home/me/software/CommonC++1.1.5/demo/
Now, I created my own program using common c++ library at /home/me/myProgram/
How do I compile my program using g++???
Is it possible for me to copy include files and library from common c++ to this directory /home/me/myProgram/ and compile my program???
thanks.
regards,
April
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I need help urgently.
I have configure and install common c++ in my Linux system as followS:
1) "./configure --prefix=/home/me/common" and "make install" is run at /home/me/software/CommonC++1.1.5/
2) then, "make" is run at /home/me/software/CommonC++1.1.5/demo/
Now, I created my own program using common c++ library at /home/me/myProgram/
How do I compile my program using g++???
Is it possible for me to copy include files and library from common c++ to this directory /home/me/myProgram/ and compile my program???
thanks.
regards,
April
You need to use ccgnu-config to get the correct compiler options and link flags to use. This can be done with something simple like:
g++ `ccgnu-config --flags` mysource.cpp