I am trying to make a c++ program using fltk library and some additional files, but i am getting this error again and again,
i used the command shown in the picture and have checked that i have libpng file installed. I can't figure out how to solve this issue. Pls help, this is the first time i have installed a library for the 12th chapter in Bjarne's 2nd edition of "Programming: Principles and Practices using C++". I am stuck on this linking issue for days and can't get my program to run.
The program i am trying to run is this:
#include "Simple_window.h"
#include "Graph.h"
int main()
{
using namespace Graph_lib;
Point tl {100,100};
Simple_window win {tl,600,400,"Canvas"};
Polygon poly;
poly.add(Point{300,200});
poly.add(Point{350,100});
poly.add(Point{400,200});
poly.set_color(Color::red);
win.attach (poly);
win.wait_for_button();
}
I am getting the same issue in Xcode.