21
Help / Re: New to //(* ... //*)
« Last post by cwmoser on March 17, 2023, 11:25:21 pm »Interesting that you can remove the comments except for first line and it still compiles OK.
When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------
Cleaned "Project - Debug"
-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------
gcc.exe -Wall -g -c H:\devel\cb_projects\test\Project\main.c -o obj\Debug\main.o
gcc.exe -o bin\Debug\Project.exe obj\Debug\main.o
Output file is bin\Debug\Project.exe with size 247.67 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
//(*Initialize(Test_GUI_4Frame)
wxMenu* Menu1;
wxMenu* Menu2;
wxMenuBar* MenuBar1;
wxMenuItem* MenuItem1;
..
//*)
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------
Cleaned "Project - Debug"
-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------
gcc.exe -o bin\Debug\Project.exe obj\Debug\main.o
gcc.exe: error: obj\Debug\main.o: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
int main (void) {
return 0;
}
||=== Build: default in compileTests (compiler: GNU GCC Compiler for ARM) ===|
ld.exe: warning||cannot find entry symbol reset_vector; defaulting to 00008000|
c:\program files\gnuarm\bin\..\lib\gcc\arm-none-eabi\7.3.1\..\..\..\..\arm-none-eabi\lib\crt0.o||In function `_start':|
(.text+0x104)||undefined reference to `__bss_start__'|
(.text+0x108)||undefined reference to `__bss_end__'|
c:\program files\gnuarm\bin\..\lib\gcc\arm-none-eabi\7.3.1\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-exit.o)||In function `exit':|
exit.c:(.text.exit+0x2c)||undefined reference to `_exit'|
||error: ld returned 1 exit status|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|