Linux tip, Fedora tip / howto: Compiling Common C++ 1.8.1

 
back to notes and tips index

Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.

Compiling Common C++ 1.8.1

The GNU Common C++ page, and its download page.

With a few fixes this compiles fine under Fedora 13 and 15 (for example).

If you get errors like this:

applog.cpp: In constructor 'ost::logger::logger(const char*, bool)': applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope applog.cpp:300:61: error: 'mkfifo' was not declared in this scope then open src/applog.cpp in an editor, and replace every occurrence of S_IREAD with S_IRUSR, and every S_IWRITE with S_IWUSR.

At the top of the file, add this line:
#include <stat.h>
(if that doesn't work, try #include <sys/stat.h>


compile to 32 bit on a 64 bit system

And a note to self, configuring to compile Common C++ to 32 bit on an x86_64 system:

./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"


← back to notes and tips index
Please do not copy the text of this tip (© Patrick Min) to your web site.