Go Back   The UNIX and Linux Forums > Operating Systems > Linux
google site



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-08-2010
Registered User
 

Join Date: May 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Compiling with multiple versions of a library

Hello!

I have a set of headers and libraries I want to use but they are mixed with ones I do not want to use. They are part of some official stuff, so I cannot modify them while begging and pleading for weeks.

These headers and libraries are located here
/long/official/path/to/include
/long/official/path/to/lib

respectively

Inside the "include" directory there is another directory "goodies" which is outdated. I have a private version of goodies located
/latest/greatest/include/goodies
that I compiled to produce
/latest/greatest/lib/libGoodies
but I had to compile this against the /long/official/path/to/include headers.

Now I want to use all of this to compile a program. I want all of headers and libs in /long/official/path/to/ but I want goodies from /latest/greatest/

When I compile I use
-I/latest/greatest/include -L//latest/greatest/lib/ -lGoodies -I/long/official/path/to/include -L /long/official/path/to/lib -lThis -That -lLotsMore

and it complains that a function in /latest/greatest/lib/libGoodies.so has undefined references which are files that are located in /long/official/path/to/include

I tried
-I/latest/greatest/include -I/long/official/path/to/include -L/latest/greatest/lib/ -lGoodies -L /long/official/path/to/lib -lThis -That -lLotsMore
but the errors persist...

If you have followed this far, can you please tell me how to fix this. Its driving me NUTS!!!

Thanks!
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compiling kernel mnodule spanning multiple files natraj Programming 0 03-25-2009 04:49 AM
library -lc: not found when compiling ncurses 5.7 in Solaris 10 Linux Bot Solaris BigAdmin RSS 0 03-13-2009 07:20 AM
Compiling multiple cpp files (abstract factory pattern) SaTYR Programming 4 06-13-2008 04:55 AM
Using multiple java versions in unix umen UNIX for Dummies Questions & Answers 2 09-05-2005 10:44 AM
How to manage multiple versions of a set of shell and SQL script utilities DennisB Shell Programming and Scripting 2 06-23-2004 08:13 AM



All times are GMT -4. The time now is 07:38 AM.