| | |
Please help me in libpng1.2.33
![]() |
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi All,
I am trying to read pixel values of a PNG file using turbo C. I use lingpng library files. I started with following code
FILE *fp = fopen(file_name, "rb");
if (!fp) return;
fread(header, 1, number, fp);
is_png = !png_sig_cmp(header, 0, number);
if (!is_png) return;
when complie this, it gives no error. but when I run (or build all) it, it gives the following error
"Linker error:Undefined symbol __png_sig_cmp in module"
Please can any one help me in this problem? Do you have any idea of what is missing here?
thank you very much
Nilmin
I am trying to read pixel values of a PNG file using turbo C. I use lingpng library files. I started with following code
FILE *fp = fopen(file_name, "rb");
if (!fp) return;
fread(header, 1, number, fp);
is_png = !png_sig_cmp(header, 0, number);
if (!is_png) return;
when complie this, it gives no error. but when I run (or build all) it, it gives the following error
"Linker error:Undefined symbol __png_sig_cmp in module"
Please can any one help me in this problem? Do you have any idea of what is missing here?
thank you very much
Nilmin
•
•
Join Date: Jul 2008
Posts: 14
Reputation:
Solved Threads: 3
Like salem said, you would be better off with a decent compiler such as gcc. If its not a problem with your compiler, then I'd guess you are not linking the library properly. Its been a while, but I had a play around with libpng once I dumped the code here on my site. It should work assuming its linked and compiled correctly.
![]() |
Other Threads in the C Forum
- Previous Thread: Getting started with C
- Next Thread: How do you check if arrow keys are pressed?
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives looping loopinsideloop. lowest match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






