#include <gtkmm.h>
int main(int argc,char* argv[])
{
Gtk::Main application(argc,argv);
Gtk::Window main_window;
main_window.set_title("C++ IDE");
Gtk::Frame my_frame;
my_frame.set_label("hello,frame");
main_window.add(my_frame);
main_window.maximize();
main_window.show_all_children();
Gtk::Main::run(main_window);
return 0;
}
gtkmm-compiler-flag=`pkg-config gtkmm-2.4 --cflags`
gtkmm-linker-flag=`pkg-config gtkmm-2.4 --libs`
mm:main.o
g++ -o $@ $< $(gtkmm-linker-flag)
main.o:main.cpp
g++ -c main.cpp $(gtkmm-compiler-flag)
clean:
rm -rf *.o
rm -rf mm
int main(int argc,char* argv[])
{
Gtk::Main application(argc,argv);
Gtk::Window main_window;
main_window.set_title("C++ IDE");
Gtk::Frame my_frame;
my_frame.set_label("hello,frame");
main_window.add(my_frame);
main_window.maximize();
main_window.show_all_children();
Gtk::Main::run(main_window);
return 0;
}
gtkmm-compiler-flag=`pkg-config gtkmm-2.4 --cflags`
gtkmm-linker-flag=`pkg-config gtkmm-2.4 --libs`
mm:main.o
g++ -o $@ $< $(gtkmm-linker-flag)
main.o:main.cpp
g++ -c main.cpp $(gtkmm-compiler-flag)
clean:
rm -rf *.o
rm -rf mm