I used Geany 1.37 om Ubuntu 20.04, when I compiled such code(Line 34), there was different prompts between GUI and CLI:
Inside GUI, there was a red wave line under Line 34 ( int v2[10]; ) , and I heard an alert from PC: /home/mianqi/Pictures/Screenshot from 2022-01-26 09-22-15.png
While, inside CLI, it was OK: /home/mianqi/Pictures/Screenshot from 2022-01-26 09-23-02.png
What was the error on line 34?
Note that the default C++ compile and build in Geany uses -Wall, try that on the command line.
I saw it in "Set Build Commands", if I didn't descend the warning level, how to fix it? I tried "int v2[10];" "int v2[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};" "int v2[];", none of them works.
Closed #3113.
This is not a problem with Geany, its how the C++ compiler works and what is wrong with your code is off topic for this project. Especially as you have not actually provided what the actual warning is.
github-comments@lists.geany.org