I have edited the file main.c with the following:
Code: Select all
// zcc +zx -compiler=sdcc -clib=sdcc_iy -create-app -o main main.c
#include <stdio.h>
void main(void) {
puts("Hello world!");
}
Now comes the good part: if I just RENAME the file main.c to 00_main.c, the following magically happens (this is a log of my terminal session):
Code: Select all
[jorgegv@endor rage1]$ cat main.c
// zcc +zx -compiler=sdcc -clib=sdcc_iy -create-app -o main main.c
#include <stdio.h>
void main(void) {
puts("Hello world!");
}
[jorgegv@endor rage1]$ mv main.c 00_main.c
[jorgegv@endor rage1]$ cat 00_main.c
// zcc +zx -compiler=sdcc -clib=sdcc_iy -create-app -o main main.c
#include <stdio.h>
void main(void) {
puts("Hello world!");
}
[jorgegv@endor rage1]$ zcc +zx -compiler=sdcc -clib=sdcc_iy -create-app -o main 00_main.c
Error at file '/tmp/tmpXXwe2Ho0.asm' line 1: syntax error
Errors in source file 00_main.c:
Error at file '/tmp/tmpXXwe2Ho0.asm' line 1: syntax error
[jorgegv@endor rage1]$
AFAIK, C imposes no naming conventions on the source file names, right?
Anyone has an explanation for this?
EDIT: This also happens if the compiler selected is SCCZ80. It looks that ZCC does not like that a source file name starts with a number. If I remove them from the beginning of the name everything works.
?????????