:: Re: [DNG] gcc error: "error: unknow…
Inizio della pagina
Delete this message
Reply to this message
Autore: Edward Bartolo
Data:  
To: aitor_czr
CC: dng@lists.dyne.org
Oggetto: Re: [DNG] gcc error: "error: unknown type name,,‘GtkObject’"
Hi Aitor et al,

I created gtk3 application but have problems connecting events to
signals using the infamous:

gtk_builder_connect_signals (builder, NULL);

No signals are connected making the application terminate without
proper cleanup.
The central part of GUI programming seems to be also the most
contorted and mysterious part. In Delphi and Lazarus Pascal,
implementing an event handler is a matter of a few mouse clicks, or at
most, an assignment of a procedural variable to the component.onclick
property.

Edward

On 01/12/2015, Edward Bartolo <edbarx@???> wrote:
> Hi Aitor,
>
> I compiled and run the application successfully.
>
> Edward
>
> On 30/11/2015, aitor_czr <aitor_czr@???> wrote:
>> Hi Edward,
>>
>> There was a mistake in the CMakeLists.txt. I fixed it and pushed the
>> commit.
>>
>> Here you are a screenshot:
>>
>> http://s12.postimg.org/mxp57q8p9/listview.png
>>
>> Cheers,
>>
>>    Aitor.

>>
>> On 30/11/15 09:00, aitor_czr <aitor_czr@???> wrote:
>>> You have to use g++ instead of gcc: g++ -export-dynamic -o listview
>>> ListView.cpp `pkg-config --libs--cflags gtkmm-3.0` If g++ doesn't find
>>> the headers <gtkmm.h>, use the Makefile. I just also pushed a
>>> CMakeList.txt. Aitor. On 11/30/2015 07:46 AM, Edward Bartolo wrote:
>>>> >Hi Aitor,
>>>> >
>>>> >I downloaded both the cpp and ui file and tried to compile them into
>>>> >an executable using this command:
>>>> >
>>>> >gcc -export-dynamic -o ListView ListView.cpp `pkg-config --libs
>>>> >--cflags gtk+-3.0 gtkmm-3.0`
>>>> >
>>>> >Compilation failed with:
>>>> >/usr/bin/ld: /tmp/ccWunzkf.o: undefined reference to symbol
>>>> >'_ZNSsD1Ev@@GLIBCXX_3.4'
>>>> >//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO
>>>> >missing from command line
>>>> >collect2: error: ld returned 1 exit status
>>>> >
>>>> >Thanks for helping me.
>>>> >
>>>> >Edward
>>>> >
>>>> >On 29/11/2015, aitor_czr<aitor_czr@???> wrote:
>>>>>> >> >Hi Edward,
>>>>>> >> >
>>>>>> >> >Here you are an example of a GtkTreeView (ListStore model) using
>>>>>> >> > Gtkmm:
>>>>>> >> >
>>>>>> >> >https://gitlab.com/aitor_cz/ListView/tree/master
>>>>>> >> >
>>>>>> >> >How to build:
>>>>>> >> >
>>>>>> >> >make -f Makefile
>>>>>> >> >
>>>>>> >> >HTH,
>>>>>> >> >
>>>>>> >> >    Aitor.

>>>>>> >> >
>>>>>> >> >On 11/29/2015 10:06 PM, Edward Bartolo<edbarx@???> wrote:
>>>>>>>> >>> >>Hi All,
>>>>>>>> >>> >>
>>>>>>>> >>> >>But as usual with GUI programming in C or C++, in this case
>>>>>>>> >>> >> gtk3, the
>>>>>>>> >>> >>way to access components, subcomponents and their data, is
>>>>>>>> >>> >> extremely
>>>>>>>> >>> >>contorted.
>>>>>>>> >>> >>
>>>>>>>> >>> >>Edward
>>
>>
>