- Joined
- Oct 15, 2008
- Messages
- 4
- Reaction score
- 0
- Points
- 1
Hey all,
I am trying to install libpng for a image project that I am working on. I have tried several time to install this library using a) MacPorts b) Manual Config and c) the ./configure script provided.
It shows up as installed when I check with MacPorts. I wrote a small test program in C which uses the function png_sig_cmp() from this library. I have tried using other functions and they all result in the same undefined symbol error. If somebody could help me figure out why this library isnt working, I would appreciate it. I think it involves the linker... but i dont really know.
-danny
ERROR (from Eclipse C IDE or gcc command line)
====
**** Build of configuration Debug for project PicLapse ****
make all
Building file: ../src/PicLapse.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/PicLapse.d" -MT"src/PicLapse.d" -o"src/PicLapse.o" "../src/PicLapse.c"
Finished building: ../src/PicLapse.c
Building target: PicLapse
Invoking: MacOS X C Linker
gcc -o "PicLapse" ./src/PicLapse.o ./src/pixel_functions.o
Undefined symbols:
"_png_sig_cmp", referenced from:
_ImageTransfer in PicLapse.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [PicLapse] Error 1
I am trying to install libpng for a image project that I am working on. I have tried several time to install this library using a) MacPorts b) Manual Config and c) the ./configure script provided.
It shows up as installed when I check with MacPorts. I wrote a small test program in C which uses the function png_sig_cmp() from this library. I have tried using other functions and they all result in the same undefined symbol error. If somebody could help me figure out why this library isnt working, I would appreciate it. I think it involves the linker... but i dont really know.
-danny
ERROR (from Eclipse C IDE or gcc command line)
====
**** Build of configuration Debug for project PicLapse ****
make all
Building file: ../src/PicLapse.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/PicLapse.d" -MT"src/PicLapse.d" -o"src/PicLapse.o" "../src/PicLapse.c"
Finished building: ../src/PicLapse.c
Building target: PicLapse
Invoking: MacOS X C Linker
gcc -o "PicLapse" ./src/PicLapse.o ./src/pixel_functions.o
Undefined symbols:
"_png_sig_cmp", referenced from:
_ImageTransfer in PicLapse.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [PicLapse] Error 1