Compilation Error for an application
Posted: 03 Feb 2015, 03:33
I was trying to compile an application on porteus linux
gcc -Wall -O xyz.c -lpci -o xyz
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld: cannot find -lpci
collect2: error ld returned 1 exit status
When I run the command on porteus linux. I get the following thing
root@porteus: locate libpci
/usr/lib/libpci.so
/usr/lib/pkgconfig/libpci.pc
/usr/lib/libpciaccess.la
/usr/lib/libpciaccess.so
/usr/lib/libpciaccess.so.0
/usr/lib/libpciaccess.so.0.11.1
/var/log/packages/libpciaccess-0.13.2-i486-1
Can you please help me resolve this.
gcc -Wall -O xyz.c -lpci -o xyz
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld: cannot find -lpci
collect2: error ld returned 1 exit status
When I run the command on porteus linux. I get the following thing
root@porteus: locate libpci
/usr/lib/libpci.so
/usr/lib/pkgconfig/libpci.pc
/usr/lib/libpciaccess.la
/usr/lib/libpciaccess.so
/usr/lib/libpciaccess.so.0
/usr/lib/libpciaccess.so.0.11.1
/var/log/packages/libpciaccess-0.13.2-i486-1
Can you please help me resolve this.