Skip to content

Tag: makefile

Rename generated files in Makefile

I have to modify a Makefile such that the intermediate files with extension .cc are moved to .cpp before building the .o. files. My modified Makefile looks like below. protoc is a compiler that generates .cc files. How to make targets so that after generating the .cc files those are move to .cpp and then the …

Setup makefile for ‘path agnostic’ inclusions

In my project files I just want to be able to say: main.cpp: When these headers files reside in separate I’ve setup my make file to attempt to achieve this but I still get fatal error: foo.h: No such file or directory so I haven’t been able to set it up correctly. Makefile: Is LIBS correct? How ca…

Compiler says uuid.h not found but apt-get says it is

When compiling my C++ project that includes uuid.h I get the compile error: fatal error: uuid.h: No such file or directory I’m not sure whats going wrong. It could be my compiler instructions are wrong or that I indeed dont have that file installed (but I don’t think thats the problem). sudo apt-g…