LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2019, 03:28 AM   #1
bkannadassan
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Rep: Reputation: Disabled
ldconfig shows library is cached but getting error during compilation


root@localhost ~/example-async-api/build (master) $ ldconfig -p | grep oat
liboatpp.so (libc6,x86-64) => /usr/local/lib64/oatpp-0.19.6/liboatpp.so
liboatpp-test.so (libc6,x86-64) => /usr/local/lib64/oatpp-0.19.6/liboatpp-test.so
root@localhost ~/example-async-api/build (master) $ g++ -I ../src/ -I /usr/local/include/oatpp-0.19.6/oatpp -loatpp ../src/App.cpp
/usr/bin/ld: cannot find -loatpp
collect2: error: ld returned 1 exit status
root@localhost ~/example-async-api/build (master) $


If you see above ldconfig shows oatpp present but when compiled with -loatpp it doesn't work. Btw please note if I give -L path it works, if I have to do so then I needn't drop a .conf for this ld.conf.d.

Btw Below Works where I have given -L:
root@localhost ~/example-async-api/build (master) $ g++ -L /usr/local/lib64/oatpp-0.19.6 -I ../src/ -I /usr/local/include/oatpp-0.19.6/oatpp -loatpp ../src/App.cpp
root@localhost ~/example-async-api/build (master) $


I want this to work without giving Library path any help on the same ?.

rgds
Balaji

Last edited by bkannadassan; 07-17-2019 at 03:30 AM.
 
Old 07-17-2019, 06:02 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,335

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Quote:
Originally Posted by bkannadassan
/usr/bin/ld: cannot find -loatpp
Why not try
Code:
ldconfig -p |grep loat
If it doesn't show, you may get out with a symlink. Grok the code.

Last edited by business_kid; 07-17-2019 at 06:03 AM.
 
Old 07-17-2019, 10:16 AM   #3
bkannadassan
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Why not try
Code:
ldconfig -p |grep loat
If it doesn't show, you may get out with a symlink. Grok the code.
root@localhost /data/bkannadassan/core/hng (balaji_dib_docker) $ ldconfig -p | grep oat
liboatpp.so (libc6,x86-64) => /usr/local/lib64/oatpp-0.19.6/liboatpp.so
liboatpp-test.so (libc6,x86-64) => /usr/local/lib64/oatpp-0.19.6/liboatpp-test.so
root@localhost /data/bkannadassan/core/hng (balaji_dib_docker) $

Please note above is a make file error.
 
Old 07-18-2019, 04:55 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,335

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
That wasn't quite it. Here's your error:
Code:
root@localhost ~/example-async-api/build (master) $ g++ -I ../src/ -I /usr/local/include/oatpp-0.19.6/oatpp -loatpp ../src/App.cpp
/usr/bin/ld: cannot find -loatpp
collect2: error: ld returned 1 exit status
I must confess I don't follow that first line, probably because there's no context. At this stage, I would do a rm -rf on the tarball, start again, and try running it with no configure options. If it compiles, don't install it. You can always do a 'make clean' and put your configure options in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
evdev_drv.so cannot find libevdev.so even though it is installed and shows up in ldconfig udiboy1209 Linux From Scratch 5 10-16-2017 07:58 AM
Library .so refuses to load even though it's listed in ldconfig -v confusedlinuxuser Linux - Server 6 07-11-2017 12:44 PM
[SOLVED] Compilation error - GSL library + MPI Benchmark Library = undefined reference quadpixels Programming 5 07-08-2012 03:33 AM
ldconfig message during libraries install with deb pascalv Linux - Software 0 07-12-2005 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration