VSCode + GtkAda problem
Hi!
After a long break I started learning Ada againβ¦
Under Windows 10 using Alire + VSCode I tried to compile a gtkada test program.
From the command line the usual βalr buildβ and βalr runβ works, the test program builds and runs without errors.
Under VSCode the build is started with the following command:
alr exec -- gprbuild -P gtkada_test.gpr -cargs -gnatef
The β-gnatefβ option seems to cause problems when compiling misc_generated.c:
Translated with DeepL.com (free version)
Compile
[C] misc_generated.c
cc1.exe: error: unrecognized debug output level 'natef'
gprbuild: *** compilation phase failed
ERROR: Command ["gprbuild", "-P", "gtkada_test.gpr", "-cargs", "-gnatef"] exited with code 4
ERROR: Command ["alr", "exec", "--", "gprbuild", "-P", "gtkada_test.gpr", "-cargs", "-gnatef"] exited with code 1
* The terminal process "C:\Program Files\PowerShell\7\pwsh.exe -Command alr exec -- alr exec -- gprbuild -P gtkada_test.gpr -cargs -gnatef" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Unfortunately I donβt know how to make gcc not get the β-gnatefβ option when compiling misc_generated.c.
Or maybe the problem is completely different?
I havenβt gone that deep into the depths of gprbuild yetβ¦
Thanks in advance for any help!
6 posts - 3 participants