Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


Search this Thread
Old 11-16-2012, 08:27 PM   #1
LQ Newbie
Registered: Jul 2011
Posts: 9

Rep: Reputation: Disabled
Compile Error

I am trying to compile test_gpsmm.cpp from gpsd. The compiler can not find some config files and I don't know how to fix it.

[root@alarm GPS]# g++ test_gpsmm.cpp -lgps -o test -I/usr/lib -I/lib -L/lib
/usr/bin/ld: warning:, needed by /usr/lib/gcc/armv7l-unknown-linux-gnueabihf/4.7.2/../../../, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning:, needed by /usr/lib//, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/4.7.2/../../../ undefined reference to `clock_gettime@GLIBC_2.4'
collect2: error: ld returned 1 exit status
And the files are here.
[root@alarm GPS]# find / | grep
[root@alarm GPS]# find / | grep
I tried adding it to with no success.
[root@alarm GPS]# cat /etc/
# /etc/

include /etc/*.conf /usr/local/lib /lib

# End of file
I ran ldconfig after I edited the file.

What am I missing? Thanks in advance.
Old 11-19-2012, 03:22 AM   #2
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,645

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
-I/usr/lib -I/lib -L/lib not required, otherwise I think the installation of g++ is incomplete or damaged.


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
[SOLVED] compile error on grub 1.99 Error: attempt to move .org backwards gkasica Linux - Software 3 01-26-2012 08:37 AM
The error compile C/C++ in linux (but it does compile on Win) hikaru1505 Programming 2 12-30-2010 09:11 AM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 12:44 PM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM

All times are GMT -5. The time now is 09:22 AM.

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