Unresolved Symbol on HP UX & oracle7

Thread Tools Search this Thread
Top Forums Programming Unresolved Symbol on HP UX & oracle7
# 1  
Old 06-17-2002
Unresolved Symbol on HP UX & oracle7

Hi everyone,
I have a problem.
I do not succeed to linking the oracle7's library for my .so and a Unresolved Symbol :sqlcxt error returns me when I call program.

this is my makefile.

cc -Ae -I/usr/include/curses_colr -L/usr/lib -DUSE_TERMIOS -D_FILE64 -DDYNAMIC_LIBRARIES_SUPPORTED -D_HPUX_SOURCE -w -O +Z -I$ORACLE_HOME/precomp/public -l:$ORACLE_HOME/lib/libsql.a -ldld -c oracobo.c

ld -b -L$ORACLE_HOME/lib -ldld -o oracobo.so oracobo.o

# 2  
Old 06-18-2002
Please change the function
extern void sqlcxt (....); created after the precompilation as extern "C" void sqlcxt (...);

The error wont appear again. Give a try do post back the results.
# 3  
Old 07-02-2002
It's because of you makefile which does not have the right path to these libraries. Try to get a proper makefile (Ex: proc.mk) from your Oracle directory, and compile your program using this make file.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

2. Solaris

Symbol reference error for same code & libraries but compiled in different environmen

Hi All, I am having a code written in C++.First I build this code on SUN 5.10.It was built successfully.Following is the log when build was successful. -L/apps/compilers/SUNWspro/lib -lm -lsunmath \ -o App ld: warning: symbol `clog' has differing types: (file... (0 Replies)
Discussion started by: milindb
0 Replies

3. AIX

Unresolved symbols

Hello experts , i have some strange problem, i wanted to create a shared object in AIX 5.3 for which i have compiled all my .cxx to .o which worked fine and then i created the .so from them , but when i do nm -Bo sample.so , i have many unresolved symbol, including printf... (0 Replies)
Discussion started by: vin_pll
0 Replies

4. HP-UX

Unresolved symbol problem

Hi I am trying to make an executable which has informix esqlc and .per files. I am using informix version 9.3. The make is successful, but when i execute, i get an error message /usr/lib/dld.sl: Unresolved symbol: ibm_lib4gl_loadint4 (code) from RVprnrecvr Abort(coredump) I searched for... (4 Replies)
Discussion started by: venkatakrishnan
4 Replies

5. Shell Programming and Scripting

use of \&\& symbol

sh /home/juser/ajss/utils/ajstartdb.sh oragold@hydapps.test.com /d03/AppsGOLD/golddb/9.2.0/GOLD_hydapps.env \&\& /home/oragold/ajss/ajstrtdb.sh the above command will execute ajstrtdb.sh file which is located in another machine. but can u specify the use of \&\& here... Is there any... (2 Replies)
Discussion started by: suryahota
2 Replies

6. Programming

unresolved symbol on AIX 5.2

Hi, want to port an executable from AIX 5.3 to AIX 5.2. This seems to be no problem, when i build one executable. But in another case i have to link one library statically and the rest is loaded at runtime. This works for AIX 5.3 but on AIX 5.2 i get the following error ... (2 Replies)
Discussion started by: pm_user
2 Replies

7. UNIX for Dummies Questions & Answers

unresolved symbol ???

when I make ncftp I just get problems like ... /usr/lib/dld.sl unresolved symbol:inet_ntop (code) does anybody know what is the problem and how to solve this? thx.. (2 Replies)
Discussion started by: svennie
2 Replies

8. Programming

How To Find Unresolved symbol in shared library?

1 . I use Digital Unix V4.0F 2 . I compile a programe which use a shared library . But when I run it( prog.out) , the shell told me that "Fatal Error : /sbin/loader : unresolved symbol in lib3cZap.so" But When I compile proj.out and lib3cZap.so , the compiler said nothing . And I ls -l... (1 Reply)
Discussion started by: chenhao_no1
1 Replies

9. Programming

c++ unresolved symbol

I have this problem: # make gcc -g -D_REENTRANT -DDISABLE_MJPEG=1 -I. -o encmain.o -c encmain.cc ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size collect2: ld returned 8 exit status but from /usr/local/include/g++v3/bits/basic_string.h : namespace... (0 Replies)
Discussion started by: thalex
0 Replies
Login or Register to Ask a Question