LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-05-2008, 04:55 AM   #1
surya1006
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
library linking problem in gcc


hi all i am compiling a project code having 28 files 18 c files 8 header files and 2 plx library files while compilation i get following error can any one help me:

[root@localhost /]# cd test
[root@localhost test]# make
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Wait_Pause_Thread.c
Wait_Pause_Thread.c: In function `Wait_Pause_Thread':
Wait_Pause_Thread.c:75: warning: assignment from incompatible pointer type
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Timer_Thread.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Test_LibFunc.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG STPC_Thread.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Printing_Data_Thread.c
Printing_Data_Thread.c: In function `Init_Printing_Data':
Printing_Data_Thread.c:191: warning: assignment from incompatible pointer type
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG PCCMDI_Thread.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Operation_Thread.c
Operation_Thread.c: In function `Operation_Thread':
Operation_Thread.c:488: warning: assignment from incompatible pointer type
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG NVRAM_Data.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Main.c
Main.c: In function `sig_handler':
Main.c:105: warning: passing arg 1 of `Unmap_Printing_Memory' makes integer from pointer without a cast
Main.c: In function `main':
Main.c:576: warning: passing arg 1 of `Reset_Device' makes integer from pointer without a cast
Main.c:586: warning: passing arg 1 of `Map_Printing_Memory' makes integer from pointer without a cast
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Log_File.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG LibFunc.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Keypad_Thread.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Global_Data.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG FPGA_Data.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Display_Data.c
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Data_Handling_Thread.c
Data_Handling_Thread.c: In function `Data_Handling_Thread':
Data_Handling_Thread.c:1086: warning: assignment from incompatible pointer type
gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Connection.c
gcc -lm -lc -lpthread -lncurses -L/PlxSdk/Linux/PlxApi/Library/PlxApi/ -lPlxApi -o printer.out PlxInit.o ConsFunc.o PlxApi.o Connection.o Data_Handling_Thread.o Display_Data.o FPGA_Data.o Global_Data.o Keypad_Thread.o LibFunc.o Log_File.o Main.o NVRAM_Data.o Operation_Thread.o PCCMDI_Thread.o Printing_Data_Thread.o STPC_Thread.o Test_LibFunc.o Timer_Thread.o Wait_Pause_Thread.o
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lPlxApi
collect2: ld returned 1 exit status
make: *** [printer.out] Error 1
[root@localhost test]#
 
Old 09-05-2008, 09:24 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,992

Rep: Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673
Quote:
Originally Posted by surya1006 View Post
hi all i am compiling a project code having 28 files 18 c files 8 header files and 2 plx library files while compilation i get following error can any one help me:
Probably not, since you're not giving folks information TO help you. What program is this? From what source?

Go through the readme file(s)...from the message, it looks as if you're missing a library or development package. It either needs t be installed from source (the readme will probably tell you...), or from a binary package somewhere.
 
Old 09-05-2008, 04:43 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Your line "34"
Quote:
../../../../i686-pc-linux-gnu/bin/ld: cannot find -lPlxApi
meaning : "libPlxApi.so?" is missing.

Not a very well known file, try 'googling' for .. PlxApi ..
if you not already have it.
Anyway this is the one to be installed first.

Regards

Last edited by knudfl; 09-05-2008 at 04:46 PM.
 
  


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
problem linking against libpcap library. brokencog Linux - Software 9 08-10-2008 11:32 PM
Problem in linking GDOME library. Varsha_vdd Linux - Newbie 2 06-05-2008 09:48 AM
Library Linking problem IronBeagle Linux - Software 3 02-14-2006 01:10 PM
Still library linking problem The_Nerd Programming 19 05-20-2004 05:08 PM
Library linking problem The_Nerd Programming 10 04-27-2004 12:07 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration