user11189621
user11189621

Reputation: 33

How to use different compiler in makefile?

CC -c main.ada
process_begin: CreateProcess(NULL, CC -c main.ada, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:13: recipe for target 'main' failed
mingw32-make: *** [main] Error 2

Using TADS compiler for compiling ada files in makefile..CC is tads compiler

Upvotes: 0

Views: 153

Answers (1)

flyx
flyx

Reputation: 39708

make cannot find the CC command. It must be in your PATH so that make can find it.

Possibly, CC is actually an environment variable and you forgot to write ${CC} instead of CC to retrieve its value.

You basically need to look up in the documentation how you would call the compiler from the command line,

CC -c main.ada

seems to be the wrong way. Some quick internet lookup suggests that the command is actually named tc, not CC.

Upvotes: 2

Related Questions