hey
I'm trying to write a program that converts a data file to a png using the libpng. however i get an error every time I call a fcn from libpng. i have both png.h and zlib.h include. i have reinstalled libpng 1.5.5 a couple of times, once with fink and another from the libpng homepage. Here is the error that i get:
I've tried using compiler option -L and -I to show the compiler where the library and includes are, but no luck.
I'm trying to write a program that converts a data file to a png using the libpng. however i get an error every time I call a fcn from libpng. i have both png.h and zlib.h include. i have reinstalled libpng 1.5.5 a couple of times, once with fink and another from the libpng homepage. Here is the error that i get:
Code:
Undefined symbols for architecture x86_64:
"_png_create_write_struct", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_create_info_struct", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_destroy_write_struct", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_set_longjmp_fn", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_init_io", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_set_IHDR", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_set_sBIT", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_set_text", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_write_info", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_error", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_write_image", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
"_png_write_end", referenced from:
jsa2png(char*, char*)in ccRwfl2Q.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
I've tried using compiler option -L and -I to show the compiler where the library and includes are, but no luck.