doubt while compiling using cc


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers doubt while compiling using cc
# 1  
Old 09-16-2006
doubt while compiling using cc

I was trying to compile a proc code. All steps when fine, except the last step which threw an error -
Quote:
cc -o test test.o -L $ORACLE_HOME/lib -l clntsh
/usr/ccs/bin/ld: /applic/oracle/product/9.2.0.3/lib/libclntsh.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link.
I was just trying to compile it manually. Any ideas what this error means. Does it mean I am using the wrong library?
# 2  
Old 09-16-2006
Got it working

The library was pointing to a 64 bit library. Changed the directory where to serach for the library. Searched google and found the solution. it should have been
Quote:
cc -o test test.o -L $ORACLE_HOME/lib32 -l clntsh
Here is the link - oracle

Should learn to first try and then post.
Regards
# 3  
Old 09-16-2006
just another way,


change your ORACLE_LIB path to /lib32 in LD_LIBRARY_PATH env variable

and just

Code:
cc filename.c -o filename -lclntsh

# 4  
Old 09-16-2006
thanks

Thanks Madhan, Will keep this in mind in future.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Compiling BBCP to hp-ux

hello, does anyone already compiled BBCP to HP UX? (0 Replies)
Discussion started by: SystemAddict
0 Replies

2. Programming

compiling coreutils

Hi gurus I am trying to compile coreutils for studying purposes. I downloaded package (exact version which target system already contains) and tried following: ./configure make but compiling ands with some header file dependency problem. Then I tried compile particular binary cd... (9 Replies)
Discussion started by: wakatana
9 Replies

3. Programming

Error with compiling

Hi guys. I have a header file: unp.h like this: #ifndef _UNP_H_ #define _UNP_H_ extern ssize_t readn(int filedes, void *buff, size_t nbytes); extern ssize_t writen(int filedes, const void *buff, size_t nbytes); extern void err_quit(const char *msg); #define TRUE 1 #define FALSE 0 ... (2 Replies)
Discussion started by: majid.merkava
2 Replies

4. Programming

Compiling in Solaris

Hi, I'm new to Unix. I'm trying to compile a shared library in Solaris running on x86. I get "void value not ignored as it ought to be" error when trying "make". But it compiles fine in Fedora. How can this happen? I think both are using the same type of compiler. What can I do to get around... (8 Replies)
Discussion started by: runnerb
8 Replies

5. UNIX for Advanced & Expert Users

re-compiling

I have a problem. How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result. I am pretty sure that I wasn't hacked! ... (5 Replies)
Discussion started by: aViking
5 Replies

6. AIX

compiling with aix 5.1

Hello, i will compile php and apache on an aix 5.1. Configure works fine. When i start the make the following error appears: /usr/include/sys/context.h:155: parse error before "sigset64_t" /usr/include/sys/context.h:158: parse error before '}' token make: 1254-004 The error code from the... (1 Reply)
Discussion started by: n-may
1 Replies

7. Programming

compiling

I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies

8. UNIX for Dummies Questions & Answers

compiling qt

i am trying to compile and install free qt for x11 2.2.4 in order to use kde 2.1. i'm using freebsd 4.3 i currently have XFree86 installed and working. i followed these instructions: ftp://ftp.trolltech.com/qt/source/INSTALL i get through the unpacking fine and i set my .profile. --... (2 Replies)
Discussion started by: nydel
2 Replies

9. UNIX for Dummies Questions & Answers

compiling

would anyone know of a good online tutorial on compiling and installing tarballs? i'm looking for one that assumes that you know very little to nothing about unix. (3 Replies)
Discussion started by: nydel
3 Replies

10. Programming

C compiling

I recently loaded SuSE on my intel comp. I am presently taking a walk down memory lane from my days at UofT. I was fiddling round with cc and the gcc compilers. I wrote a basic basic basic program . I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
Login or Register to Ask a Question