Oracle Database Development (4). Example Makefile for Pro*C
Vert Melon
Jun 8,2007
<本文主要介绍Linux下使用Makefile编译ProC程序的方法>
It is a pity that there is a few aritcle written in Chinese which talking about
the material method of Makefile for Pro*C/C++ .Maybe it's not diffcult to the most
Linux developers , but I find lots of questions about the method of compile
which follows no answer .
I don't know why .
1.Preface
Assumed that you just finished the installation of Oracle Pro*C In Linux OS ,
you hurry to enter the directory which contains lots of Pro*C examples and type
this command " make -f demo_proc.mk sample1 " to get a first programme. In all
probability you could find lots of errors and warnings full of the screen instead
of a imaged executable file.
Don't worry , let us discover the secrect in it , which is the mainly content
of this artical.
Oracle DataBase Development Series
http://blog.csdn.net/liwei_cmg/category/207442.aspx
2.The causation of errors
In the beginning , I was also puzzled with this errors , for i had no idea with
Precompiler Options . Everything becomes clear go with the knowing the Precompiler
Options.
Input your command " proc parse=? " at the command line .
$ proc parse=?
You should see the prompt following .
Pro*C/C++: Release 9.2.0.4.0 - Production on Fri Jun 8 12:22:36 2007
Copyright (c) 1982, 2002, Oracle Corporation.