Category : makefile

I am cross-compiling (Ubuntu 16.04, QNX, and ROS) a collision detection library and trying to package it for installation. I am compiling c++98 code using cmake 3.15.2. When I build the code (for all fore-mention OS), it builds just fine. However, when I try to package the library, it hangs when CPack is creating the ..

Read more

I’m trying to use valgrind on a program which is the output of the make command using this makefile: # Intlist makefile P = intlist C = g++ F = -m32 -g -O0 -Wall O = IntListTest.o IntList.o $(P): $(O) $(C) $(F) -o $(P) $(O) IntListTest.o: IntListTest.cpp IntList.h $(C) $(F) -c IntListTest.cpp IntList.o: IntList.cpp IntList.h ..

Read more

I know this question has been asked a million times but I can’t seem to figure this out. I’m working with a Makefile written by someone else: CC=g++ CFLAGS=-Wall -g -gdwarf-3 -std=c++0x -rdynamic # JEMALLOC=deps/jemalloc-5.1.0 NNMSG=deps/nng-1.3.2 BOOST=deps/boost_1_67_0 CRYPTOPP=deps/crypto SQLITE=deps/sqlite-autoconf-3290000/build .SUFFIXES: .o .cpp .h SRC_DIRS = ./ ./benchmarks/ ./client/ ./transport/ ./system/ ./statistics/ ./blockchain/ ./db/ ./smart_contracts/ ./data_structures ..

Read more

I have a makefile in my c++ project CC=g++ CFLAGS=-std=c++11 -Wall -pedantic -Wno-long-long -O0 -ggdb -c SRC=src SOURCES=main.cpp … # and all other .cpp files OBJECTS=$(SOURCES:.cpp=.o) USERNAME=denisand LIBS=-lpthread all: compile compile: $(OBJECTS) $(CC) $^ -o $(USERNAME) $(LIBS) run: ./$(USERNAME) doc: doxygen Doxyfile main.o: $(SRC)/main.cpp $(CC) $(CFLAGS) $< -o [email protected] %.o: $(SRC)/%.cpp $(SRC)/%.h $(CC) $(CFLAGS) $< ..

Read more

I can’t compile a simple program using Codelite. When I clean a project, I saw this in build log of Codelite: C:Windowssystem32cmd.exe /C ""C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe" -j4 SHELL=cmd.exe -e -f Makefile clean" "———-Cleaning project:[ Test1 – Debug ]———-" mingw32-make.exe[1]: Entering directory ‘C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1’ rm -f -r Debug/ process_begin: CreateProcess(NULL, rm -f -r Debug/, …) failed. make (e=2): ..

Read more