[Geany-Users] Re: Not able to compile cpp program
>From the command line, terminal, whatever: $which clang++ a path will be listed. unless clang++ is not on your system, or not in your $PATH echo $PATH then for giggles: ls -al /usr/bin/clang++ or wherever your clang++ resides. is it marked executable? I saw a similar issue with someone else last week where the compiler was not executable. I'd also be willing to guess some sort of permission issue. On Sun, Oct 6, 2024 at 7:25 AM Enrico Tröger via Users < users@lists.geany.org> wrote: > On 06.10.24 12:41, Avdhoot Jadhav via Users wrote: > > So what are the possible things I could try out? I have symlinks to clang > > in /usr/bin. > This is weird, Geany should find clang++ then except /usr/bin is not > part of your $PATH environment variable but this is highly unlikely. > > You could try to specify the full path /usr/bin/clang++ in the Build > commands. > > You can also try to execute clang++ in the embedded Terminal tab in > Geany itself. I guess it uses the same environment as Geany itself and > so will probably not find clang++ as well. > > Regards, > Enrico > > ___ > Users mailing list -- users@lists.geany.org > To unsubscribe send an email to users-le...@lists.geany.org > -- Eric Lovejoy Bangor Makerspace Outreach liaison. Bangor Makerspace 34 Freedom Parkway Hermon, Me, 04401 makerspaceban...@gmail.com Phone: (207)-401-5878 Make.Break.Learn.Fix.Repeat https://bangormakerspace.org ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Not able to compile cpp program
On 06.10.24 12:41, Avdhoot Jadhav via Users wrote: So what are the possible things I could try out? I have symlinks to clang in /usr/bin. This is weird, Geany should find clang++ then except /usr/bin is not part of your $PATH environment variable but this is highly unlikely. You could try to specify the full path /usr/bin/clang++ in the Build commands. You can also try to execute clang++ in the embedded Terminal tab in Geany itself. I guess it uses the same environment as Geany itself and so will probably not find clang++ as well. Regards, Enrico OpenPGP_signature.asc Description: OpenPGP digital signature ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Not able to compile cpp program
So what are the possible things I could try out? I have symlinks to clang in /usr/bin. On Sun, 6 Oct 2024, 16:09 Lex Trotman via Users, wrote: > It appears that clang++ is not on the path that Geany can see. If the > search path is set by shell startup script, but you run Geany from the menu > where there is no shell involved, then the path will not contain clang++. > > On Sun, 6 Oct 2024 at 18:04, Avdhoot Jadhav via Users < > users@lists.geany.org> wrote: > >> Hello there, I have freshly installed geany on my void linux xfce. In my >> current setup, I have clang installed and I don't have gcc installed. I >> have been using geany for years and earlier I used geany with gcc and it >> worked fine. >> I had set the compile and build commands as follows- >> 1. Compile - clang++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -O2 >> -Wno-unused-result >> 2. Build - clang++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -g >> -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG >> >> When I tried executing build or compile, geany threw this error - >> [image: image.png] >> >> Specs - >> Geany version - 2.0 >> OS - Void Linux XFCE Latest >> Clang - v18.1.8 >> >> I need help in setting geany for clang. Could anyone help me with this? >> >> >> Thanks, >> Avdhoot J >> ___ >> Users mailing list -- users@lists.geany.org >> To unsubscribe send an email to users-le...@lists.geany.org >> > ___ > Users mailing list -- users@lists.geany.org > To unsubscribe send an email to users-le...@lists.geany.org > ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Not able to compile cpp program
It appears that clang++ is not on the path that Geany can see. If the search path is set by shell startup script, but you run Geany from the menu where there is no shell involved, then the path will not contain clang++. On Sun, 6 Oct 2024 at 18:04, Avdhoot Jadhav via Users wrote: > Hello there, I have freshly installed geany on my void linux xfce. In my > current setup, I have clang installed and I don't have gcc installed. I > have been using geany for years and earlier I used geany with gcc and it > worked fine. > I had set the compile and build commands as follows- > 1. Compile - clang++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -O2 > -Wno-unused-result > 2. Build - clang++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -g > -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG > > When I tried executing build or compile, geany threw this error - > [image: image.png] > > Specs - > Geany version - 2.0 > OS - Void Linux XFCE Latest > Clang - v18.1.8 > > I need help in setting geany for clang. Could anyone help me with this? > > > Thanks, > Avdhoot J > ___ > Users mailing list -- users@lists.geany.org > To unsubscribe send an email to users-le...@lists.geany.org > ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org