Eclipse IDE for C / C ++, gcc cannot find * .c document

I am working on a C project in Eclipse, the environment is Windows X64.When I tried to compile the program, it said:

11:54:29 **** Incremental build configuration Debug for TPCembarque project **** Info: Internal Builder is used to build gcc "-ID: \ java workspace \ TPCembarque \ inc" "-ID: \ java workspace \ TPCembarque \ lib \ "" -includeD: \ java workspace \ TPCembarque \ lib \ libVirtualBoard.a "-O0 -g3 -Wall -c -fmessage-length = 0 -o" src \ main.o "" .. \ src \ main. c "gcc: error: workspace \ TPCembarque \ lib \ libVirtualBoard.a -O0 -g3 -Wall -c -fmessage-length = 0 -o src \ main.o .. \ src \ main.c: No such file or directory gcc: fatal error: incomplete compilation of input files.

11:54:29 Build Finished (took 657ms)

so it couldn't find main.c

All my project related data was saved in D: / systnum and I created my project in the D: / java / TPCembarque workspace.

I have already set up the build environment as d: \ systnum \ MinGW \ bin; d: \ systnum \ MSys \ 1.0 \ bin I have already added the main.c file to project 1 Can someone tell me how to let the compiler find main.c? thank!

+3


source to share


1 answer


Can I insert my project file?

I see a potential problem due to two different paths mentioned in your build log.



"src\main.o"  -> src is a folder in current directory
"..\src\main.c" -> src is a folder in the directory one folder back.

      

0


source







All Articles