The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


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

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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2006
Registered User
 

Join Date: Nov 2005
Posts: 9
Stumble this Post!
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

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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-19-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
Stumble this Post!
compile proc

First generate the .c code from .pc.
proc -iname=filename.pc

Then generate the .o file
cc -I${ORACLE_HOME}/precomp/public -c filename.c

After that link the .o to libraries and produce the exe.
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, 145 views)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0