Solved

making g++ program using pro*c++ makefile

Posted on 1998-05-19
5
697 Views
Last Modified: 2013-12-26
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.
0
Comment
Question by:aapi
[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
  • 2
  • 2
5 Comments
 

Author Comment

by:aapi
ID: 1293559
Edited text of question
0
 
LVL 3

Expert Comment

by:elfie
ID: 1293560
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, ...

0
 

Author Comment

by:aapi
ID: 1293561
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.
0
 
LVL 3

Expert Comment

by:elfie
ID: 1293562
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)


0
 
LVL 3

Accepted Solution

by:
braveheart earned 60 total points
ID: 1293563
You could always have two separate makefiles - one to generate C from your ESQL using your Pro*C compiler - the other makefile can do the actual link or any other processing. However, it ought to be quite easy to do all the processing in a single file. RTFM?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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