aapi
asked on
making g++ program using pro*c++ makefile
My problem:
I am not able to match pro*c++ makefile to (gnu) g++ compiler.
Where can I found example or something details that
I can make the makefile working.
I am not able to match pro*c++ makefile to (gnu) g++ compiler.
Where can I found example or something details that
I can make the makefile working.
Do you have problems starting up the correct compiler?
in such case you have to define the correct CC macro
e.g CC=/dir/dir/prog
You have to do the same for LD, ...
in such case you have to define the correct CC macro
e.g CC=/dir/dir/prog
You have to do the same for LD, ...
ASKER
My probles is to compile c++ code using pro*c make file.
How do I tell to my makefile that compile c++ compatible code,
do I have to do own configuration file for pro*c or something else ? Now my makefile wants to compile only C -code so it does not understand C++ syntax.
There in the pro*c is option CODE= CPP, but where I have to write it that it works ? and do I have to do something else that
I can be sure that the compiled code is C++ compatible.
Example of using gnu g++ and pro*c makefile together is the best what can I get, I think, or some good advices.
How do I tell to my makefile that compile c++ compatible code,
do I have to do own configuration file for pro*c or something else ? Now my makefile wants to compile only C -code so it does not understand C++ syntax.
There in the pro*c is option CODE= CPP, but where I have to write it that it works ? and do I have to do something else that
I can be sure that the compiled code is C++ compatible.
Example of using gnu g++ and pro*c makefile together is the best what can I get, I think, or some good advices.
As far as i can see (not knowing anything about pro*c), it's all related to the default rules in the pro*c makefile.
I suggest you first try compiling on the command line, and then building a makefile which is capable of doing the same.
Check the documentation of pro*c makefile for building rules, and passing arguments to command.
If your makefile doesn't have rules for compiling c++, you have to define a rules such as
.cpp.o: $(CPP) $(CPP_OPTIONS) ...
(sorry don't have documentation on me right now for correct ... syntax)
I suggest you first try compiling on the command line, and then building a makefile which is capable of doing the same.
Check the documentation of pro*c makefile for building rules, and passing arguments to command.
If your makefile doesn't have rules for compiling c++, you have to define a rules such as
.cpp.o: $(CPP) $(CPP_OPTIONS) ...
(sorry don't have documentation on me right now for correct ... syntax)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER