Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] Frage zum Linken eines Shared Objects
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Xe
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 254
Location: Karlsruhe, Germany

PostPosted: Fri Nov 05, 2004 5:00 pm    Post subject: [OT] Frage zum Linken eines Shared Objects Reply with quote

Hi!

Ich möchte ein Shared Object, welches sich im selben Ordner wie meine Anwendung befindet, mit meiner Anwendung verlinken.
Das Problem dabei ist, dass ich beim Kompilieren noch nicht weiß, wo sich die Anwendung später befinden wird, wenn sie ausgeführt wird.

Gibt es da evtl. ein Flag, das bewirkt, dass die Library in dem Ordner gesucht wird, in dem sich die Anwendung befindet, oder ist dieses Problem ohne Linken zur Laufzeit nicht zu lösen?

MFG

mod edit: +[OT]
amne
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Fri Nov 05, 2004 5:04 pm    Post subject: Reply with quote

Schreibe ein Wrapper-Skript, das LD_LIBRARY_PATH exportiert und dann das Programm exec()t. Mehr Informationen findest du in ld.so(8)

HTH!
/dev
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum