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
compiling c program in unix zlatan005 High Level Programming 2 06-18-2008 07:04 AM
help on compiling a C program on Tiger cleansing_flame High Level Programming 4 01-29-2008 03:59 PM
Compiling a C program ooploo High Level Programming 3 10-06-2006 07:35 AM
Compiling a program Minnesota Red High Level Programming 7 06-16-2003 05:35 PM
Error Compiling C program Vivek High Level Programming 3 10-25-2001 12:13 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2009
nsmrmd nsmrmd is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
Compiling Pro*C program under unix

Hello,

I am trying to compile a Pro*C program under unix:

proc iname=test.pc
works fine
but then I am not able to compile the test.c file :


gcc test.c -o test.o -L $ORACLE_HOME/lib -l clntsh
/usr/bin/ld:
Object file format error in: /u01/app/oracle/product/10.1.0.2.0/lib: read_cur_obj_info: File is not a regular file
collect2: ld returned 1 exit status

I've checked other threads and here is my observation:
my oracle installation does not have the
$ORACLE_HOME/precomp/demo directory, so I am not able to check the demo makefile.
I guess my problem is with linking the required libraries.
Please help me figure out the problem.
thanks...

Last edited by nsmrmd; 09-25-2009 at 02:39 PM.. Reason: spelling checks
  #2 (permalink)  
Old 10-11-2009
mclroy mclroy is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 1
Quote:
Originally Posted by nsmrmd View Post
proc iname=test.pc
What is the text of your test.pc?
Reply

Bookmarks

Tags
pro*c

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0