Hi
I am trying to write and compile a small program/function, which I hope to add to a program originally written in C. The original uses GTK so that’s what I am trying to write for my program which I will bolt in or call from within the original program, (its original function is not working). I will be using VSCode to write compile …
Enough on with the problem, its a file picker or is going to be using the “GtkWidget *dialog;”
I have three lines of code with the error on line 3
#include <gtk/gtk.h>
Error :
home/steve/Projects/FilePicker/bs-LoadPick
/home/steve/Projects/FilePicker/bs-LoadPick.cpp:3:10: fatal error: gtk/gtk.h: No such file or directory
I have tried google and youtube and had no joy working out what the problem is and how to fix it, does anyone know of a guide I can follow, on how to set up Arch based distro(EOS) for programming??
Been to arch forums and got my post deleted.
Will upload code source program to Pastebin or similar if required.
Hi
I am using VSCode to run/debug/fix code.
I have setup up a Makefile as per one of the videos, I also setup
as per one of the videos, some compiler directives or similar I forget the
the exact definition given.
Hi @dalto Sure there are errors iam only starting in C as the rest of the program is
is written in it, I will be sending the completed function to the creator of the original program.
They refuse/can’t do it. I get to the errors and fix them when I get past the present error.
I am more atr home in python I know enough to get by.
The make file is in the same dir/folder in vscode.
I would just warn you that C is a fairly unforgiving programming language.
Before trying to write/modify a GTK program, you will probably need to learn to program in C. It is fairly small language compared to modern languages but it is essential you understand how memory management works in C because unlike many languages, it doesn’t do that for you.
Hi
Thanks the program I hope will be fairly simple, in function
I have ideas in my head, but when I get to compiling it VSCode
Ile have a better idea how to go about it. The main Idea for me is
just to pass a file name back to the main program which is what
I would like then hand over my Function/contribution and help integrate it.
Possibly more later or tomorrow I have things to do.