undefined reference error in png++

view story

http://ubuntuforums.org – Hi All, I am new to C++ on linux enviroment and am trying to use the png++ library for a project. The problem i am facing is that that a simple program i write using png++ incudes does not work and shows me the following errors AProg.o: In function `png::info_base::info_base(png::io_base&, png_struct_def*)': AProg.cpp:(.text._ZN3png9info_baseC2ERNS_7io_baseE P14png_struct_def[_ZN3png9info_baseC5ERNS_7io_baseEP14png_struct_def]+0x21): undefined reference to `png_create_info_struct' AProg.o: In function `png::info::write() const': AProg.cpp:(.text._ZNK3png4info5writeEv[png::info::write() (Hardware)