Home » Infrastructure » Linux » How to compile Pro*C program
How to compile Pro*C program [message #98648] Wed, 20 February 2002 09:53 Go to next message
Satya
Messages: 36
Registered: January 2001
Member
hai guys,

I am new to unix. I wrote a C++ , Pro C- program on linux. How shall i compile it. i need the command please.

Thanqs in advance
satya.
Re: How to compile Pro*C program [message #98701 is a reply to message #98648] Thu, 18 July 2002 12:30 Go to previous messageGo to next message
cpsgill
Messages: 1
Registered: July 2002
Junior Member
gcc -o example example.c
to run:- ./example
Re: How to compile Pro*C program [message #98814 is a reply to message #98701] Wed, 19 February 2003 16:33 Go to previous messageGo to next message
Kay
Messages: 3
Registered: March 2001
Junior Member
proc file.pc
this will build file.c and file.lis. then,
gcc -o file file.c
Re: How to compile Pro*C program [message #98821 is a reply to message #98648] Mon, 03 March 2003 04:23 Go to previous messageGo to next message
Lucky Hoeffliger
Messages: 1
Registered: March 2003
Junior Member
hi guys! I just thought that writing here might help me with my problem... I am working on my thesis right now and I got these C codes which are implemented in Unix and which i needed to run...I have no knowledge on Unix and Linux and I really am in big trouble right now cause our defense/presentation is nearing... Now, how do I execute the codes that i have with me? will a C program in unix run in all linux systems or will there be any constraint or whatsoever?Can you please give me the commands/instructions in compiling and running my codes... i really need your help....thanks
Re: How to compile Pro*C program [message #98843 is a reply to message #98701] Fri, 28 March 2003 03:25 Go to previous messageGo to next message
guruprasad
Messages: 6
Registered: October 2000
Junior Member
I have similar problem with Pro*C on linux redhat 7.1.
How to create a proc batch file ?
and how to compile the .pc file ?
Please clarify the doubt. For which I have been struggling for quite some time.
regards
guru
Re: How to compile Pro*C program [message #99014 is a reply to message #98701] Wed, 10 March 2004 20:35 Go to previous messageGo to next message
Alexander Skwar
Messages: 1
Registered: March 2004
Junior Member
Okay, that's how to compile a "normal" C source. But I'd also like to compile a Pro*C program like the first example program here at http://www.orafaq.com/scripts/proc/select.txt

I tried:

gcc -o proc-select -I/opt/oracle/product/8.1.7/precomp/public proc-select.c

And I get:

proc-select.c:13: error: parse error before "SQL"
proc-select.c:13: warning: data definition has no type or storage class
proc-select.c:17: error: parse error before "SQL"
proc-select.c:17: warning: data definition has no type or storage class
proc-select.c: In function `main':
proc-select.c:20: error: `EXEC' undeclared (first use in this function)
proc-select.c:20: error: (Each undeclared identifier is reported only once
proc-select.c:20: error: for each function it appears in.)
proc-select.c:20: error: parse error before "SQL"
proc-select.c:19: warning: return type of `main' is not `int'

What am I doing wrong?
How to compile Pro*C program [message #99108 is a reply to message #99014] Tue, 27 July 2004 03:40 Go to previous messageGo to next message
Gayan
Messages: 3
Registered: July 2004
Junior Member
i want to know how to compile a C program.
Re: How to compile Pro*C program [message #99134 is a reply to message #99014] Wed, 25 August 2004 15:46 Go to previous messageGo to next message
cristo
Messages: 1
Registered: August 2004
Junior Member
why don't you try using the proc binary located in $ORACLE_HOME/bin/proc
cheers

Por que no intentas con el binario "proc" que se encuentra en $ORACLE_HOME/bin/proc
saludos
Re: How to compile Pro*C program [message #262744 is a reply to message #99134] Tue, 28 August 2007 03:53 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Dear All,

Then what is the user of file "demo_proc.mk" which is copied from $ORACLE_HOME/precomp/demo/proc?

I have only c++ compiler in my box and also i have proc, i just wrote proc sample program, by giving
gcc -o sam sam.pc
it is creating .c file but not executable, it is showing some error..
do i need to change "env_precomp.mk" under $ORACLE_HOME/precomp/lib

Thanks.
Re: How to compile Pro*C program [message #276853 is a reply to message #262744] Fri, 26 October 2007 08:16 Go to previous message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Any update on this?
Previous Topic: no privilege for installtion
Next Topic: how to shutdown and up database in oracle 9i
Goto Forum:
  


Current Time: Tue Sep 23 15:29:34 CDT 2014

Total time taken to generate the page: 0.15707 seconds