In main.c file, we create some buttons and attach event handler to it. I modify it from IUP hello world sample to show how we access other controls from a event handler that only has reference to the control sending the event.
IUP is a cross platform GUI library. Last time tried to figure out how to compile an IUP hello world program using codeblocks IDE. After some searching on internet finally managed to compile it. Here is the linker setting used.
On my experiment with FreeBSD 11.1, after some time i am installing codeblocks , an IDE for creating C/C++ program. Unfortunately codeblocks didnt work (crash) on launch. Looks like some issue on wxwidget. Dunno.
After some casual browsing on FreeBSD package/ports list on the net , i found another C/C++ IDE !
It is Codelite !
pkg install codelite
Launch codelite, automatically detect clang llvm 4 available, then do some helloworld project …