Creating custom widget linker error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Creating custom widget linker error

Rúben Rodrigues
Hi,

I'm trying to create a custom widget like in this example:
http://djcj.org/gtk/

The example works, but when i try to make something similar i get a
linker error, and don't understand why!

Error:

make all
Building target: ConsolaGrafica
Invoking: Cross GCC Linker
arm-linux-gnueabihf-gcc -L/opt/x-tools/rootfs/rpi/usr/local/lib
-L/lib/arm-linux-gnueabihf -L/opt/x-tools/rootfs/rpi/home/pi/jsmn
-L/usr/lib/gcc-cross/arm-linux-gnueabi/5/
-L/opt/x-tools/rootfs/rpi/home/pi/linechart-dist/anychart
-L/usr/lib/arm-linux-gnueabihf --sysroot=/opt/x-tools/rootfs/rpi
`pkg-config --libs gmodule-export-2.0`
/opt/x-tools/rootfs/rpi/usr/lib/arm-linux-gnueabihf/libstdc++.so.6 -o
"ConsolaGrafica"  ./src/home/Home_Alarms.o ./src/home/Home_Cooling.o
./src/home/Home_Houses.o ./src/home/Home_Sensors.o  
./src/gtk-linechart/gtk-linechart.o ./src/dialogs/Setup_Alarms.o
./src/dialogs/Setup_Cooling_Reduction.o ./src/dialogs/Setup_Exits.o
./src/dialogs/Setup_Heating.o ./src/dialogs/Setup_Lighting.o
./src/dialogs/Setup_ProbeEnable.o ./src/dialogs/Setup_Progression.o
./src/dialogs/Setup_Super_Coolers.o ./src/dialogs/Setup_Super_Cooling.o
./src/dialogs/Setup_Super_ProbeCal.o ./src/dialogs/Setup_TimeDate.o
./src/dialogs/Setup_Weight.o ./src/dialogs/ask_passcode.o  
./src/customwidgets/circulargauge.o
./src/customwidgets/circularprogressbar.o ./src/customwidgets/gtkmeter.o
./src/customwidgets/mycpu.o ./src/customwidgets/psquare.o
./src/customwidgets/stroker-nodalcontainer.o  ./src/Database.o
./src/EditableTable.o ./src/Keypad.o ./src/LogView.o ./src/Main.o
./src/SaveConfig.o ./src/StatusBar.o ./src/UpdateConfig.o
./src/UpdateStatus.o ./src/callbacks.o   -lgtk-3 -lX11 -lcurl -lgdk-3
-lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0
-lpthread -lmysqlclient -lz -ldl -lm -lpangoft2-1.0 -lfontconfig
-lfreetype -lgthread-2.0 -lanychart -lstdc++ -ljsmn
./src/customwidgets/circularprogressbar.o: In function
`circular_progressbar_set_property':
/home/autofran_ruben/dev/consola/ConsolaGrafica/RaspberryPiDebug/../src/customwidgets/circularprogressbar.c:145:
undefined reference to `circular_progress_bar_get_type'


Definition (.h file):

GType          circular_progress_bar_get_type (void) G_GNUC_CONST;

#define GTK_CIRCULAR_PROGRESSBAR_TYPE (circular_progress_bar_get_type ())
#define GTK_CIRCULAR_PROGRESSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST
((obj), GTK_CIRCULAR_PROGRESSBAR_TYPE, CircularProgressBar))
#define GTK_CIRCULAR_PROGRESSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST
((klass), GTK_CIRCULAR_PROGRESSBAR_TYPE, CircularProgressBarClass))
#define GTK_CIRCULAR_IS_PROGRESSBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE
((obj), GTK_CIRCULAR_PROGRESSBAR_TYPE))
#define GTK_CIRCULAR_IS_PROGRESSBAR_CLASS(klass)
(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_CIRCULAR_PROGRESSBAR_TYPE))
#define GTK_CIRCULAR_PROGRESSBAR_GET_CLASS(obj)
(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_CIRCULAR_PROGRESSBAR_TYPE,
CircularProgressBarClass))

Thanks


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Loading...