| | |
Please help me in libpng1.2.33
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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?
Views: 328 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C
* api append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createcopyoffile createprocess() csyntax database directory drawing dynamic executable execv feet fgets file floatingpointvalidation fork frequency function getlogicaldrivestrin givemetehcodez global graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping lowest matrix meter microsoft mqqueue mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked reversing scheduling segmentationfault send single socketprogramming spoonfeeding standard strchr string student suggestions system test testautomation testing unix urboc user whythiscodecausesegmentationfault win32api windowsapi






