g_object_new() and g++
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list gnome org
- Subject: g_object_new() and g++
- Date: Sat, 25 Jan 2003 18:04:06 GMT
i am having problems compiling the very reduced code snipped below.
my build command is:
g++ -Wall -g test.c -o test `pkg-config --clags gtk+-2.0` \
`pkg-config --libs gtk+-2.0`
it ends up with:
"cannot convert `void*` to `GtkTreeView*` in assignment"
when i replace the "g++" through "gcc" it works. but i need to use g++.
any idea ?
Perhaps you can use gcc to compile and g++ to link.
For example, I use the following makefile fragment
in this old machine:
Carlos
---------------------------
COMPILE = gcc -g -Wall -ansi
LINK = g++
$(EXE): $(GAMGI_o)
$(LINK) -o $@ $^ $(PATH_L) -Wl,-Bdynamic $(LIBS)
%.o : %.c $(GAMGI_h)
$(COMPILE) -c $(PATH_H) $< -o $@
----------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]