You are not logged in.
Hi, Im new on arch. Like the title says, I have a project on C , using GTK3 on Ubuntu. Now I changed to Arch Linux.
My current code was working fine , also the make file . I installed all need it on Arch , the Gtk lib ... Gcc ... all need it. Also I can do a new hello world on GTK and compile and works on Arch but now, but If I compile the project with "make" like always ,I have some problems. For example , now I have this issue , on Ubuntu all compiled fine :
src/add_contact_window.c: In function ‘open_add_contact_window’:
src/add_contact_window.c:84:28: error: passing argument 1 of ‘gtk_entry_set_text’ from incompatible pointer type [-Wincompatible-pointer-types]
84 | gtk_entry_set_text(name_entry,_contact->name);
| ^~~~~~~~~~
| |
| GtkWidget * {aka struct _GtkWidget *}
This code should be works , because on Ubuntu was working.
I installed the GTK using "pacman -S gtk3" like I readed on the wiki. Like I said, on Ubutu I do not had that problem. It is like if the gtklib is not equal like Ubuntu ...
I need help. Thank you guys.
Last edited by Tsw1985 (2024-07-05 13:32:53)
Offline
you were using an old gcc on Ubuntu. It used to just be a warning, now it's an error by default. Since it's your code, you'd best fix it instead of ignoring it by turning off the check again.
Offline
Ok, thank you . I will try to fix it. When I get it, I will put this like "SOLVED". Thank you my friend
Offline
Yes . That was the problem . I fix the code and now works.
Offline