Compile and Run Issue

Hello,

I am using the castle engine on Void linux. I am trying to compile the default empty program and it results in the following errors:

Warning: “crtbegin.o” not found, this will probably cause a linking failure

Warning: “crtend.o” not found, this will probabl-y cause a linking failure

/usr/bin/ld: cannot find -lgtk-3: No such file or directory

I can’t find any gtk3 libraries and the ones that I do find are related to the D programming language.

Thanks for any help!

I have just figured out the issue, in case anyone else who might have the same or similar error,

I used the command:

ld -lgtk-3 --verbose > ISSUE.TXT

And it was mentioning libgtk3 libraries so I looked for the equivalent of it and it turned out to be the package: gtk+3-devel

So install the libraries via:

sudo xbps-install -Su gtk+3-devel

And everything should be fine. It is required for the crt stuff I think.

Hope everyone has a great day!

1 Like