PATH for makefile and main.c [message #1856829] |
Wed, 04 January 2023 15:59  |
Eclipse User |
|
|
|
Eclipse doesn't see the files main.c and makefile
without explicit definition of the full path to these files.
I illustrated the question by video (audio off): https://youtu.be/-ioKBtEuTTA
I try to build a simplest project with only 'main.c' and 'makefile' using 'Build command' mingw32-make.exe .
My project path is D:\a\
The files main.c and makefile are placed also here.
But Eclipse doesn't see these files.
Now to correctly Build the project I use
Build command: mingw32-make (it's path is placed in Windows global PATH for search)
Build argument: -f D:\a\makefile
and
the path D:\a\ in makefile for main.c, for example;
main.o: D:\a\main.c
gcc -O0 -g3 -Wall -c D:\a\main.c
IDE doesn't search main.c and makefile even in workspace path.
QUESTION: where I must define this path (D:\a\)?
If in C/C++ Build \ Environment, is it correct to create new variable (not add the path to the 'PATH' variable)? How to use such new variabe?
Or may be there is somewhere a checkbox to provide search in workspace path?
[Updated on: Sat, 07 January 2023 11:10] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds