c++ - Conflicting declarations in gtkmm headers -
i'm beginning think need scrap , redo scratch. i've been manually adding libraries gtk , gtkmm in codeblocks compiler settings, when see else missing header, this.
||=== test, debug ===| /usr/include/gdkmm-3.0/gdkmm/applaunchcontext.h|32|error: conflicting declaration ‘typedef struct _gdkapplaunchcontext gdkapplaunchcontext’| /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h|42|error: ‘gdkapplaunchcontext’ has previous declaration ‘typedef struct gdkapplaunchcontext gdkapplaunchcontext’| /usr/include/gdkmm-3.0/gdkmm/applaunchcontext.h|33|error: conflicting declaration ‘typedef struct _gdkapplaunchcontextclass gdkapplaunchcontextclass’| /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h|43|error: ‘gdkapplaunchcontextclass’ has previous declaration ‘typedef struct gdkapplaunchcontextclass gdkapplaunchcontextclass’| /usr/include/gdkmm-3.0/gdkmm/rgba.h|251|error: return type ‘gdk::rgbatraits::ctype {aka struct _gdkrgba}’ incomplete| /usr/include/gdkmm-3.0/gdkmm/rgba.h|252|error: return type ‘gdk::rgbatraits::ctype {aka struct _gdkrgba}’ incomplete| /usr/include/gtkmm-3.0/gtkmm/widget.h|3890|error: ‘gdkeventtouch’ not declared in scope| /usr/include/gtkmm-3.0/gtkmm/widget.h|3890|error: template argument 2 invalid| ||=== build finished: 8 errors, 0 warnings ===|
any ideas on how can solve this? also, tips on how add these libraries standard path libraries? doing manually every project huge pain.
i solved it. instead of adding header directories under compiler's search directories. added following line:
`pkg-config --libs --cflags gtkmm-3.0`
to other options under both compiler , linker in codeblocks. solved conflicts , allowed me run test program finally.
Comments
Post a Comment