mbcrawfo/GenericMakefile

Compile errors on Linux

Closed this issue · 2 comments

Hi,

Compiling on Linux (Raspian), I get the following errors. My program compiles file if I just compile it with gcc directly. Any ideas?

Creating directories
Beginning release build
Compiling: ._main.c -> build/release/._main.o
._main.c:1:1: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\5’ in program
._main.c:1:2: error: stray ‘\26’ in program
._main.c:1:2: error: stray ‘\7’ in program
._main.c:1:5: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\2’ in program
._main.c:1:7: warning: null character(s) ignored [enabled by default]
._main.c:1:17: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\2’ in program
._main.c:1:27: warning: null character(s) ignored [enabled by default]
._main.c:1:35: warning: null character(s) ignored [enabled by default]
._main.c:1:39: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\2’ in program
._main.c:1:43: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\253’ in program
._main.c:1:47: warning: null character(s) ignored [enabled by default]
._main.c:1:89: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\253’ in program
._main.c:1:97: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\234’ in program
._main.c:1:101: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\17’ in program
._main.c:1:105: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\1’ in program
._main.c:1:121: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\234’ in program
._main.c:1:125: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\17’ in program
._main.c:1:129: warning: null character(s) ignored [enabled by default]
._main.c:1:2: error: stray ‘\27’ in program
._main.c:1:154: warning: null character(s) ignored [enabled by default]
._main.c:1:9: error: ‘Mac’ does not name a type
._main.c:1:163: error: expected unqualified-id before numeric constant
make[1]: *** [build/release/._main.o] Error 1
make: *** [release] Error 2

These are definitely problems with your compiler, not with the makefile. It's probably a compiler option that you need to pass.

Like @alekratz said, this sounds like an issue with your code and/or the compiler options you're using.