Go Back   The UNIX and Linux Forums > Top Forums > Programming
Search Forums:



Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-19-2006
Registered User
 

Join Date: Nov 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How to compile pro*c, C programs

Hi,

How to precompile the c program which has proc statements within it.

If it is only c, I will use the following cmd

Code:
cc filename.c -o output

so please tell me what command I have to use for precompilation.

I beleave that this is not an oracle or proc forum, but still I hope will get the assistance.
Sponsored Links
    #2  
Old 05-19-2006
Registered User
 

Join Date: Oct 2005
Location: Chennai
Posts: 370
Thanks: 0
Thanked 3 Times in 3 Posts
compile proc

First generate the .c code from .pc.

Code:
proc -iname=filename.pc

Then generate the .o file

Code:
cc -I${ORACLE_HOME}/precomp/public -c filename.c

After that link the .o to libraries and produce the exe.

Code:
cc -o exe_name -L $ORACLE_HOME/lib -lclntsh

This is an obscure way of doing things. Generate a make file and try to put all your options in that. Also, read the txt doc attached for more details.
Attached Files
File Type: txt makefile.txt (19.8 KB, 2583 views)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Debugging Pro C Programs rameshvmenon Programming 5 07-12-2006 09:36 AM
How to compile and run C++ programs in UNIX environment? Kahuashi Programming 5 05-28-2002 01:27 AM
TSR programs rajashekaran Programming 6 02-26-2002 08:33 AM
Where did my programs go? helvetica UNIX for Dummies Questions & Answers 3 08-06-2001 10:12 PM
How to Compile programs using cc?? spotanddot Programming 7 07-09-2001 07:51 AM



All times are GMT -4. The time now is 11:15 PM.