nim-lang / ui

Beginnings of what might become Nim's official UI library.
MIT License
240 stars 32 forks source link

compiler error on ubuntu 19 #24

Closed dariotarantini closed 5 years ago

dariotarantini commented 5 years ago

i got this error while tryng to compile an example

Error: execution of an external compiler program 'gcc -c  -w -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/lib/nim -o /home/dario/.cache/nim/test_d/common_OLD_table.c.obj /home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c' failed with exit code: 1

/home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c:15:1: error: unknown type name ‘uiTableColumn’; did you mean ‘uiTableValue’?
 uiTableColumn *uiTableAppendTextColumn(uiTable *t, const char *name, int modelColumn)
 ^~~~~~~~~~~~~
 uiTableValue
/home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c:15:16: error: conflicting types for ‘uiTableAppendTextColumn’
 uiTableColumn *uiTableAppendTextColumn(uiTable *t, const char *name, int modelColumn)
                ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c:2:
/home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/../ui.h:1398:17: note: previous declaration of ‘uiTableAppendTextColumn’ was here
 _UI_EXTERN void uiTableAppendTextColumn(uiTable *t,
                 ^~~~~~~~~~~~~~~~~~~~~~~
/home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c: In function ‘uiTableAppendTextColumn’:
/home/dario/.nimble/pkgs/ui-0.9.3/ui/./libui/common/OLD_table.c:17:2: error: unknown type name ‘uiTableColumn’; did you mean ‘uiTableValue’?
  uiTableColumn *tc;
  ^~~~~~~~~~~~~
  uiTableValue