vincent_kelly
January 10th, 2013, 04:12 AM
Hi all,
I'm trying to install a program in ubuntu 12.04 LTS.
The files are attached. The main program calls the popt library. I did install the library. The library was originally in /usr/lib/i386-linux-gnu/. It didn't work. I wasn't sure if this was the folder where gcc would look for the libraries. So I made a sym link at /usr/lib/libpopt.so, which points to the original library file.
But it still gives me these errors.
acm@acm-desktop:~/Downloads/dat2dxf-0.8.3a$ make
gcc -o dat2dxf -Wall -O2 -DDEBUG -lpopt main.o point.o
main.o: In function `main':
main.c:(.text.startup+0x1fc): undefined reference to `poptGetContext'
main.c:(.text.startup+0x206): undefined reference to `poptGetNextOpt'
main.c:(.text.startup+0x293): undefined reference to `poptFreeContext'
main.c:(.text.startup+0x539): undefined reference to `poptPeekArg'
main.c:(.text.startup+0x54f): undefined reference to `poptGetArg'
main.c:(.text.startup+0x630): undefined reference to `poptStrerror'
main.c:(.text.startup+0x642): undefined reference to `poptBadOption'
collect2: ld returned 1 exit status
make: *** [dat2dxf] Error 1
Does anyone have idea what went wrong?
Thanks.
Vincent
I'm trying to install a program in ubuntu 12.04 LTS.
The files are attached. The main program calls the popt library. I did install the library. The library was originally in /usr/lib/i386-linux-gnu/. It didn't work. I wasn't sure if this was the folder where gcc would look for the libraries. So I made a sym link at /usr/lib/libpopt.so, which points to the original library file.
But it still gives me these errors.
acm@acm-desktop:~/Downloads/dat2dxf-0.8.3a$ make
gcc -o dat2dxf -Wall -O2 -DDEBUG -lpopt main.o point.o
main.o: In function `main':
main.c:(.text.startup+0x1fc): undefined reference to `poptGetContext'
main.c:(.text.startup+0x206): undefined reference to `poptGetNextOpt'
main.c:(.text.startup+0x293): undefined reference to `poptFreeContext'
main.c:(.text.startup+0x539): undefined reference to `poptPeekArg'
main.c:(.text.startup+0x54f): undefined reference to `poptGetArg'
main.c:(.text.startup+0x630): undefined reference to `poptStrerror'
main.c:(.text.startup+0x642): undefined reference to `poptBadOption'
collect2: ld returned 1 exit status
make: *** [dat2dxf] Error 1
Does anyone have idea what went wrong?
Thanks.
Vincent