So Eclipse for C for Windows 10. Go simple, build the default hello.c.
Building file: ../src/hello.cAny suggestions? And it cannot resolve stdio.h either.
Invoking: Cross GCC Compiler
gccgcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/hello.d" -MT"src/hello.o" -o "src/hello.o" "../src/hello.c"
/bin/sh: gccgcc: command not found
make: *** [src/subdir.mk:20: src/hello.o] Error 127
"make all" terminated with exit code 2. Build might be incomplete.
19:27:22 Build Failed. 2 errors, 0 warnings. (took 2s.473ms)
The core problem seems to be that gcc eun from the cygwin shell cannot resolve stdarg.h, nor does it seem to be under /usr/include.
I was hoping to do this project in C, but at least I can write and run Hello World in Java, so I guess Java instead.Except that import.iava.io.* does not resolve File class. Maybe I just need to stop trying to program. Not sure why, but starting over fixed it. Maybe import after the package statement. It was six years and several billion brain cells ago.
You have gccgcc as your compiler command. Is that the actual name or a mistake? I've never used the cross compiler.
ReplyDeleteBut even if it's the right name, the error is that it can't find gccgcc, meaning it's missing.
Mistake. Fixed that. Still can't resolve stdarg.h
ReplyDelete