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
Looking for a small free software licence, compatible with the GNU GPL?
Then the Eiffel Forum License [link] [link] could be for you.
(UK) Licence is the noun form, and license is the verb, so a when a licencee has a licence, they are licensed by a Licensing Authority.
file: licence.txt
Eiffel Forum Licence, version 2
1:
Permission is hereby granted [...]
Filed under: c++, music | 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 September 12th, 2007 by headwedge
I hate anti-ternarism and I would generally consider it pathognomonic for Time Wasting-Morons who have not been ratcheted up in its use.
The Ternary Operator offers a very concise and readable alternative to nested if-then-else constructs in assignment and imho should be preferred in the languages that implement its concise form.
it represents: a := if [...]
Filed under: Java, c++, code, rants | No Comments »
Posted on November 23rd, 2006 by headwedge
Pleased with xcode but appaled by Objective-C. I am sorry but it just is not different enough to be a ‘new’ language to qualify in the “learn a new language every year” category and even in its version 2 release it seems to be the ugly sister of C++. So how was I going to [...]
Filed under: c++, code | No Comments »