Friday, March 20, 2020

Eclipse for C

Unfortunately, the ddd debugger for Linux has stopped working, at least with new code that I compile.  No symbols.  And yes I am compiling with 0g flag.

So Eclipse for C for Windows 10.  Go simple, build the default hello.c.
Building file: ../src/hello.c
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/ 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)
Any suggestions? And it cannot resolve stdio.h either.

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* 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.


Rick C said...

You have gccgcc as your compiler command. Is that the actual name or a mistake? I've never used the cross compiler.

But even if it's the right name, the error is that it can't find gccgcc, meaning it's missing.

Clayton Cramer said...

Mistake. Fixed that. Still can't resolve stdarg.h