How To Put Gnu Make In Path For Dev C++
Posted By admin On 13.12.20How To Put Gnu Make In Path For Dev C 4
Right now I am doing Object-Oriented-Programming (OOP) in C++, and
I am getting to the point where I want each pair of class files (one .h
file and one .cpp file) in there own directory. How do I edit my Makefile
so that it looks in these sub-directories? Can this be done with the -I
command? My Makefile works except when I put `ThisExample.cpp' and `ThisExample.o' in a subdirectory called 'This'. I get the following error
message:
prompt# make
make: *** No rule to make target `ThisExample.cpp', needed by `ThisExample.o'. Stop.
Thanks in advance for your time and help in solving this problem.
------------------------------------------------------------------------
This is my Makefile:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Makefile for Unix & Linux Systems #
# using a GNU C++ compiler #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# compiler flags
# -g --Enable debugging
# -Wall --Turn on all warnings
# -D_USE_FIXED_PROTOTYPES_
# --Force the compiler to use the correct headers
# -ansi --Don't use GNU ext; do use ansi standard.
CXX = g++
CXXFLAGS = -ansi -Wall
INCLUDE = -I./This/This*
OBJECTS = main.o ThisExample.o
EXE = Example
MAIN = main
TARGET1 = ThisExample
#Link command:
$(EXE): $(OBJECTS)
$(CXX) $(CXXFlAGS) $(INCLUDE) $(OBJECTS) -o $(EXE)
#Compilation commands:
$(MAIN).o: $(MAIN).cpp
$(CXX) $(CXXFlAGS) $(INCLUDE) -c $(MAIN).cpp -o $(MAIN).o
$(TARGET1).o: $(TARGET1).cpp
$(CXX) $(CXXFlAGS) $(INCLUDE) -c $(TARGET1).cpp -o $(TARGET1).o
#make clean
clean:
rm -f *.o
I am getting to the point where I want each pair of class files (one .h
file and one .cpp file) in there own directory. How do I edit my Makefile
so that it looks in these sub-directories? Can this be done with the -I
command? My Makefile works except when I put `ThisExample.cpp' and `ThisExample.o' in a subdirectory called 'This'. I get the following error
message:
prompt# make
make: *** No rule to make target `ThisExample.cpp', needed by `ThisExample.o'. Stop.
Thanks in advance for your time and help in solving this problem.
------------------------------------------------------------------------
This is my Makefile:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Makefile for Unix & Linux Systems #
# using a GNU C++ compiler #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# compiler flags
# -g --Enable debugging
# -Wall --Turn on all warnings
# -D_USE_FIXED_PROTOTYPES_
# --Force the compiler to use the correct headers
# -ansi --Don't use GNU ext; do use ansi standard.
CXX = g++
CXXFLAGS = -ansi -Wall
INCLUDE = -I./This/This*
OBJECTS = main.o ThisExample.o
EXE = Example
MAIN = main
TARGET1 = ThisExample
#Link command:
$(EXE): $(OBJECTS)
$(CXX) $(CXXFlAGS) $(INCLUDE) $(OBJECTS) -o $(EXE)
#Compilation commands:
$(MAIN).o: $(MAIN).cpp
$(CXX) $(CXXFlAGS) $(INCLUDE) -c $(MAIN).cpp -o $(MAIN).o
$(TARGET1).o: $(TARGET1).cpp
$(CXX) $(CXXFlAGS) $(INCLUDE) -c $(TARGET1).cpp -o $(TARGET1).o
#make clean
clean:
rm -f *.o
How To Put Gnu Make In Path For Dev C 2017
Auto tune vst for adobe auditio. Ladykiller in a bind apk download for android. 'There doesn't seem to be GNU Make file in PATH or in Dev-C's Bin path. Please make sure that you have GNU Make and adjust Bin setting or system PATH environment variable and that make setting in Compiler Option contains correct filename, otherwise you will not be able to compile anything.' Dec 06, 2016 Run it and install MinGW. Only the basic package is strictly needed for Cython, although you might want to grab at least the C compiler as well. /ddj-sz-traktor-pro-2-mapping.html.