Problems with Lazarus and SuSe 10 lazarus / 1-Linux ---------------------------------------------------------------------- DEATH · 2006-01-10 18:24 Hi! I have problem : /usr/lib/libgdk.a(gdk.o): In function `gdk_init_check': gdk.c:(.text+0x5e1): undefined reference to `__ctype_toupper' /usr/lib/libgtk.a(gtkaccellabel.o): In function `gtk_accel_label_refetch': gtkaccellabel.c:(.text+0xb75): undefined reference to `__ctype_toupper' gtkaccellabel.c:(.text+0xbae): undefined reference to `__ctype_toupper' /usr/lib/libgtk.a(gtkentry.o): In function `gtk_move_forward_word': gtkentry.c:(.text+0x30b4): undefined reference to `__ctype_b' gtkentry.c:(.text+0x30eb): undefined reference to `__ctype_b' gtkentry.c:(.text+0x3119): undefined reference to `__ctype_b' /usr/lib/libgtk.a(gtkentry.o): In function `gtk_move_backward_word': gtkentry.c:(.text+0x3195): undefined reference to `__ctype_b' gtkentry.c:(.text+0x31c1): undefined reference to `__ctype_b' /usr/lib/libgtk.a(gtkentry.o):gtkentry.c:(.text+0x31f1): more undefined references to `__ctype_b' follow /usr/lib/libgtk.a(gtkrc.o): In function `_gtk_normalize_codeset': gtkrc.c:(.text+0x40e): undefined reference to `__ctype_tolower' /usr/lib/libgtk.a(gtktext.o): In function `find_cursor_at_line': gtktext.c:(.text+0x5596): undefined reference to `__ctype_b' /usr/lib/libgtk.a(gtktext.o): In function `find_mouse_cursor_at_line': gtktext.c:(.text+0x5911): undefined reference to `__ctype_b' /usr/lib/libgtk.a(gtktext.o): In function `gtk_text_move_forward_word': gtktext.c:(.text+0x60d5): undefined reference to `__ctype_b' gtktext.c:(.text+0x60ec): undefined reference to `__ctype_b' gtktext.c:(.text+0x60fd): undefined reference to `__ctype_b' /usr/lib/libgtk.a(gtktext.o):gtktext.c:(.text+0x614f): more undefined references to `__ctype_b' follow project1.lpr(14,1) Error: Error while linking What can i do? ---------------------------------------------------------------------- Anonymous · 2006-01-12 22:31 Quote from: "DEATH"Hi! I have problem : What can i do? Have you installed the development packages of GTK 1 and 2? ---------------------------------------------------------------------- Anonymous · 2006-02-10 18:22 Quote from: "Guest"Hi! Have you installed the development packages of GTK 1 and 2? Yes i have installef gtk gtk2 gtk2-devel gtk+-devel gdk-pixbuf gdk- pixbuf-devel :/ What is wrong? Now i have installed fpc 2.0.2 and lazarus 0.9.12. ---------------------------------------------------------------------- Anonymous · 2006-02-18 22:23 I use Suse 10, no problem. I use Lazarus 0.9.12 and Lazarus 0.9.13. Problem are user :lol: hua hua hua hua ---------------------------------------------------------------------- Marc · 2006-02-21 09:00 Quote from: "Anonymous"Quote from: "Guest"Hi! Have you installed the development packages of GTK 1 and 2? Yes i have installef gtk gtk2 gtk2-devel gtk+-devel gdk-pixbuf gdk- pixbuf-devel :/ What is wrong? How did you install those pakages. Were there any warnings ? ---------------------------------------------------------------------- Altair22 · 2006-03-11 15:41 Make the following code into a .c file, and include it in your program. At the start of main(), call ctSetup(). Make sure you compile statically or else the dynamic loader will cause problems. I've seen others use macros, but this worked good enough for us...     #include     __const unsigned short int *__ctype_b;     __const __int32_t *__ctype_tolower;     __const __int32_t *__ctype_toupper;     void ctSetup()     {     __ctype_b = *(__ctype_b_loc());     __ctype_toupper = *(__ctype_toupper_loc());     __ctype_tolower = *(__ctype_tolower_loc());     } ---------------------------------------------------------------------- eric · 2006-03-11 19:22 I don't know whether it's relevant, but you need to edit /etc/fpc.cfg, and in the section 'Searchpath for libraries' add the line -Fl/opt/gnome/lib Eric ---------------------------------------------------------------------- mg1821 · 2006-03-17 02:46 I use lazarus beta with suse 9.3 and the first time it want not to link so I search and try again and again after I try this: project ->compiler options->paths->LCL widget->gtk2 thats all.... now i can compile my application. :twisted: ---------------------------------------------------------------------- beli0135 · 2006-03-19 14:30 Another good advice is not to install RPMs with "rpm -iv", but with "yast -i" Resolves most of the problems.