Category Archives: C

Howto build openssl on Windows

This howto is for building the latest version of openssl (1.0.1) on the latest version of the Microsoft Windows Desktop operating system (Windows 7 64 bit) using the latest Microsoft compiler (Visual Studio 2011 beta), targeting the 32 bit architecture. … Continue reading

Posted in C, Howtos | 16 Comments

Boost header-only dependencies on serialization

boost:bimap and boost::graph should be header-only libraries, i.e. you are supposed to be able to use them by just including the corresponding header file, with no need to link in any compiled library. Actually with the latest boost version (1.44) … Continue reading

Posted in C, Howtos | Leave a comment

A chemical formula parser for boost::spirit

Within boost, Spirit is the parser generator framework. As an exercise, a boost::spirit parser is presented for chemical formulas. The parser is compatible with boost version 1.40, hence Spirit classic is used. The BNF grammar is: lowercase_alphabetic character ::= ‘a’ … Continue reading

Posted in C, Howtos | Leave a comment

C++ reflection: extract type inheritance information with code postprocessing

NOTE 1: In the following reflection is meant in the rather narrow sense of the capability of a computer program to observe its own type structure (types, sizes, member layout, member function signatures, inheritance) at run-time. NOTE 2:The following code … Continue reading

Posted in C, Howtos | 2 Comments

Valid identifiers in FORTRAN 66, C, Java , C++ current and future

What’s in a name ? Identifiers are used in modern programming languages to refer to types, classes, variables and object instances. While the first programming languages were resource-constrained and ASCII-centered, modern languages are more flexible with regards to the possible … Continue reading

Posted in C | Leave a comment

Programmatically create OpenDocument files

The OpenDocument file formats are great, interoperable file formats for exchanging data with Office Applications. Unfortunately the 728-pages ISO/IEC 26300:2006 “Information technology — Open Document Format for Office Applications (OpenDocument) v1.0” is not exactly an entertaining reading, and someone wishing … Continue reading

Posted in C, Uncategorized | Leave a comment

The sizes of the built-in C++ types: an experimental investigation

With the transition from the 32-bit x86 architecture to the 64-bit amd-64 and the increasing diffusion of mobile development platforms, the question “what is the size of an int” pops up frequently. If you want to know what applies to … Continue reading

Posted in C | Leave a comment