943,601 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 387
  • C RSS
Dec 22nd, 2008
0

Please help me in libpng1.2.33

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nilmin is offline Offline
1 posts
since Dec 2008
Dec 22nd, 2008
0

Re: Please help me in libpng1.2.33

Does libpng even work with such an ancient fossil compiler like turbo c ?

Consider using a compiler compatible with your OS.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Dec 23rd, 2008
0

Re: Please help me in libpng1.2.33

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.
Reputation Points: 12
Solved Threads: 3
Newbie Poster
mike_g is offline Offline
14 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Getting started with C
Next Thread in C Forum Timeline: Split / explode-like function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC