Posted on May 18th, 2008 by headwedge
Producing code to the GNU coding standards requires setting up your system appropriately.
step 0
Download and read the free book ‘Developing software with GNU’ [link]
step 1
Ensure Free Software Foundation tools are present and up to date:
apt-get install make [link]
apt-get install m4 [link]
apt-get install texinfo
Filed under: c++, linux, ubuntu | No Comments »
Posted on May 12th, 2008 by headwedge
Self descriptive framework for a makefile:
Remember that makefiles require the ascii |TAB| character (Hex 09) as a leader for command lines!
Stuart Feldman, the author of make, explains this dreadful whitespace design botch…
Why the tab in column 1? Yacc was new, Lex was brand new. I hadn’t tried either, so I figured this would be a [...]
Filed under: c++, linux | No Comments »
Posted on May 9th, 2008 by headwedge
GNU Compiler Chain
C++ frontend:
g++
option -o specify executable name otherwise defeault is a.out:
g++ -o name code.cpp
run the executable:
./name
compile and assemble but do not link:
g++ -c first.cpp
g++ -c second.cpp
link the object files from 4:
g++ -o name first.o second.o
reduce 4 & 5 to single command:
g++ -o name first.cpp second.cpp
option -l load external library e.g. math library libm: (n.b. [...]
Filed under: c++, linux | No Comments »
Posted on May 10th, 2007 by headwedge
Funny cartoon from Steve Napierski (www.dualinganalogs.com):
[click image to enlarge]
I find Ubuntu plays well with my Mac Mini. [Download Ubuntu Linux]
Filed under: linux, mac | No Comments »