how to link without using ld -rpath


 
Thread Tools Search this Thread
Top Forums Programming how to link without using ld -rpath
# 1  
Old 03-17-2010
how to link without using ld -rpath

Hello,
I'm tryign to compile a sample code which uses OTL(Oracle, Odbc and DB2-CLI Template Library Programmer's Guide). I get this error while compiling the source file:
Code:
[hd@mahzen otl]$ g++ foo.cpp -o foo -I /tmp/  -I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -L$ORACLE_HOME/lib/ -lclntsh
/usr/bin/ld: warning: libnnz10.so, needed by /usr/lib/oracle/xe/app/oracle/product/10.2.0/server//lib//libclntsh.so, not found (try using -rpath or -rpath-link)

libnnz10.so exists in the -L path but it complains about it.
I can't understand how to use -rpath or -path-link. I do not link the files with ld, so how can I use these options? In man page of g++ there is not an option named 'rpath'. Is it possible to pass an option to g++ to do the same thing?

Thanks.

---------- Post updated 03-17-10 at 08:10 AM ---------- Previous update was 03-16-10 at 05:28 PM ----------

Hello,
I've solved the problem.
Adding -lnnz10 is needed to link correctly.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

/var/adm/messages (insterface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies

2. Solaris

/var/adm/messages (interface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# cat /var/adm//messages Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Symbolic link not allowed or link target not accessible

Hi everybody, I read about treads realted to this issue but they did not resovle issue given below. Please help me resolve issue given below I have html file under /srv/www/htdocs/actual_folder ls actual_folder/ test.html and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies

4. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

5. Solaris

difference between RPATH and normal linking while building

while building in solaris and going for dynamic linking whats the difference or advantage or disadvantage in using RPATH vs while linking package and dependency libraries i need a little explanation about this RPATH option specially and the difference with normal linking using -L (0 Replies)
Discussion started by: mobydick
0 Replies

6. UNIX for Dummies Questions & Answers

need some info about symbolic link and hard link

hello folks how y'all doin well i have some questions about symbolic link and hard link hope some one answer me i open terminal and join as root and i wrote ln -s blah blah then i wrote ls i see red file called blah blah but didn't understand what is this can some one explain and... (2 Replies)
Discussion started by: detective linux
2 Replies

7. UNIX for Dummies Questions & Answers

Difference between hard link and soft link in unix

Hi All, Can any one please explain me what is the difference between hard link and soft link in UNIX. Thanks in advance Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies
Login or Register to Ask a Question
Template::Manual(3)					User Contributed Perl Documentation				       Template::Manual(3)

NAME
Template::Manual - Template Toolkit User Manual Template Toolkit Manual The Template Toolkit manual contains documentation on using and extending the Template Toolkit. Template::Manual::Intro The Template::Manual::Intro page provides an introduction to the Template Toolkit Template::Manual::Syntax The Template::Manual::Syntax desribes the syntax and structure of templates and the directive tags embedded within them. Template::Manual::Directives The Template::Manual::Directives page lists all the Template Toolkit directives and gives examples of their use. Template::Manual::Variables The Template::Manual::Variables page describes the use of variables in templates. Template::Manual::VMethods The Template::Manual::VMethods page provides a full list of virtual methods that can be used in conjunction with variables, and gives examples of their use. Template::Manual::Config The Template::Manual::Config page describes all of the Template Toolkit configuration options. Template::Manual::Filters The Template::Manual::Filters page lists all of the Template Toolkit filters and gives examples of their use. Template::Manual::Plugins The Template::Manual::Plugins page lists all of the standard plugins distributed with Template Toolkit and gives examples of their use. Template::Manual::Internals The Template::Manual::Internals page describes the internal workings of the Template Toolkit. It is aimed at developers who wish to extend or modify the Template::Manual::Views The Template::Manual::Views page describes the experimental "VIEW" directive. Template::Manual::Credits The Template::Manual::Credits page lists the people who have contributed to the Template Toolkit. perl v5.12.1 2008-11-13 Template::Manual(3)