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