Please help me in libpng1.2.33

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2008
Posts: 1
Reputation: nilmin is an unknown quantity at this point 
Solved Threads: 0
nilmin nilmin is offline Offline
Newbie Poster

Please help me in libpng1.2.33

 
0
  #1
Dec 22nd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,851
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Please help me in libpng1.2.33

 
0
  #2
Dec 22nd, 2008
Does libpng even work with such an ancient fossil compiler like turbo c ?

Consider using a compiler compatible with your OS.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 14
Reputation: mike_g is an unknown quantity at this point 
Solved Threads: 3
mike_g mike_g is offline Offline
Newbie Poster

Re: Please help me in libpng1.2.33

 
0
  #3
Dec 23rd, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum


Views: 328 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC