Linux configure/make, –prefix?

Do configure –help and see what other options are available. It is very common to provide different options to override different locations. By standard, –prefix overrides all of them, so you need to override config location after specifying the prefix. This course of actions usually works for every automake-based project. The worse case scenario is … Read more

Where does the k prefix for constants come from?

It’s a historical oddity, still common practice among teams who like to blindly apply coding standards that they don’t understand. Long ago, most commercial programming languages were weakly typed; automatic type checking, which we take for granted now, was still mostly an academic topic. This meant that is was easy to write code with category … Read more

makefile: how to add a prefix to the basename?

Look at Make’s addsuffix function. Here is an example we use with `addsuffix` to place obj files one directory below the source. SOURCE += MainThread.cpp SOURCE += Blah.cpp OBJ=$(join $(addsuffix ../obj/, $(dir $(SOURCE))), $(notdir $(SOURCE:.cpp=.o))) From the make manual: $(addprefix prefix,names…) The argument names is regarded as a series of names, separated by whitespace; prefix … Read more

targetNamespace and xmlns without prefix, what is the difference?

targetNamespace is an XML Schema “artifact”; its purpose: to indicate what particular XML namespace the schema file describes. xmlns – because the XML Schema is an XML document, it is then possible to define a default XML namespace for the XML file itself (this is what xmlns attribute does); the implications are multiple: authoring, and … Read more