473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

[BR] GTK+ com C++

Estou com problemas em GTK+ com o tipo de dados GList*

GList *item;
.....

item = g_list_append(item,"Bla Bla Bla");

quando compilo esse código em C puro nao ha problemas mas em C++
retorna um erro dizendo que o tipo de conversão é inválida (void* to
void*)

Obrigado e até mais

Oct 14 '05 #1
4 1469
ne********@gmail.com wrote:
[redacted]


In English, please.
Oct 14 '05 #2

<ne********@gmail.com> schreef in bericht
news:11*********************@g14g2000cwa.googlegro ups.com...
Estou com problemas em GTK+ com o tipo de dados GList*

GList *item;
.....

item = g_list_append(item,"Bla Bla Bla");

quando compilo esse código em C puro nao ha problemas mas em C++
retorna um erro dizendo que o tipo de conversão é inválida (void* to
void*)

Obrigado e até mais
no se,

muchas gentes no hablar espanol.

adios

John
Oct 15 '05 #3

GList *item;
....

item = g_list_append(item,"Bla Bla Bla");

quando compilo esse código em C puro nao ha problemas mas em C++
retorna um erro dizendo que o tipo de conversão é inválida (void* to
void*)


I think he can compile with a C compiler, but C++ yields an error
(can't convert void* to void*) - maybe he forgot some "const" in the
error!? Anyway, if he can't speed English, an enlgish answer won't
help him much, will it?
item = g_list_append((void*) item, "BlahBlah"); ??

-Gernot
Oct 17 '05 #4
Thank's

Oct 25 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wil Koenen | last post by:
Hi, When importing (parts of) gtk, here's what I get: >>> import gobject Traceback (most recent call last): File "<pyshell#13>", line 1, in ? import gobject ImportError: DLL load failed:...
2
by: Dennis | last post by:
The setup: Windows XP Pro Python 2.3 GTK+ 2.2.1.2 and pyGTK 1.99.17 for Python 2.3 from http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ I've downloaded and installed per the instructions the...
6
by: Batista, Facundo | last post by:
I'm still deciding about using Tkinter or wxPython for a project I have (sigefi, on SF). The decision is not made, I have to finish first a little program that will be done in both GUIs, and...
1
by: kristian.hermansen | last post by:
keherman@ibmlnx20:/tmp$ cat helloworld.py #!/usr/bin/env python import pygtk pygtk.require('2.0')
6
by: johnmmcparland | last post by:
Hi all, I am doing some C / C++ programming in cygwin and I notice when I add something to my path then try to compile, the gcc / g++ compiler cannot find some files, even though they are in the...
6
by: kdikert | last post by:
I have a worker thread, and when the worker is done I want it to show a popup dialog. The sample application below demonstrates this. There are two buttons: a "Show dialog" button which immediately...
8
kaarthikeyapreyan
by: kaarthikeyapreyan | last post by:
The gtk version which tried to install is 2.12.9 The Glib version is 2.16.3 /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la...
1
kaarthikeyapreyan
by: kaarthikeyapreyan | last post by:
This time am getting a new error gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/home/numenta/gtk+-2.9.4/gtkconf/lib\"...
0
by: Joel Hedlund | last post by:
Hi! I'm developing a pygtk application where I need to show images zoomed in so that the user can see individual pixels. gtk.gdk.Pixbuf.scale() seemed ideal for this, but if I set offset_x and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.