Please Help

RudeConfig™ Open Source C++ Config File Library

Version 5.0.5

Installation

Linux Installation

This installation puts the header files and libraries into public places so they are easily accessed by all your programs. The public areas are usually /usr/include and /usr/lib OR /usr/local/include and /usr/local/lib. Please note: We have assumed /usr/lib and /usr/include for these instructions. If your directories are different, you will need to substitute your correct paths in the instructions given below.

NOTE: You may need to have super user priveleges (eg. logged in as root) to install Config. If you don't, see the Quick-n-Dirty section here.

1. If it doesn't already exist, create public rude lib and include directories under /usr/include and /usr/lib

>mkdir /usr/include/rude
>mkdir /usr/lib/rude

>chmod 755 /usr/include/rude
>chmod 755 /usr/lib/rude

2. unzip the package

>tar xzvf rudeconfig.2.1-nnnnn.tar.gz

3. move into the unzipped directory

>cd rudeconfig.2.1

4. Copy the header file (config.h) to the /usr/include/rude directory.

>cp config.h /usr/include/rude/config.h
>chmod 644 /usr/include/rude/config.h

5. Copy the libraries to the /usr/lib directory

For Shared Library:

>cp rudeconfig.so.2.1 /usr/lib/rudeconfig.so.2.1
>chmod 644 /usr/lib/rudeconfig.so.2.1
>ln -sf /usr/lib/rudeconfig.so.2.1 /usr/lib/rudeconfig.so

For Regular Library:

>cp rudeconfig.lib /usr/lib/rudeconfig.lib
>chmod 644 /usr/lib/rudeconfig.lib

Borland CBuilder 5.x (CBuilder and command line) Installation

If you just want to dive in and use the component, see the Quick-n-Dirty section here.

Otherwise, this installation puts the header file and library into public places so they are easily accessed by all your programs.
In order to do this, you will need to find Borland's Include and Lib directory. Depending, of course, on where you installed Borland, the paths will look something like:

C:\Program Files\Borland\CBuilder5\Include

And

C:\Program Files\Borland\CBuilder5\Lib

1. If it doesn't already exist, create a public rude include directory under Borland's include directory

>mkdir "C:\Program Files\Borland\CBuilder5\Include\rude"

2. Copy the Config header file (config.h) to the directory created above

>copy config.h C:\Program Files\Borland\CBuilder5\Include\rude

3. Copy the borland command line library (rudeconfig.lib) to Borland's Lib Directory

>copy rudeconfig.lib C:\Program Files\Borland\CBuilder5\Lib

4. Copy the borland CBuilder 5 library (rudeconfig-cb.lib) to Borland's Lib Directory

>copy rudeconfig-cb.lib C:\Program Files\Borland\CBuilder5\Lib

Microsoft Visual Studio Version 6

Note: Microsoft likes to move these configuration options to new menus and dialogs in each release of Visual C++, so you may need to look around a bit to find them in later versions.

After downloading the Visual Studio files, unzip them and move them to the following directories. (You need to make these directories if they don't already exist).

copy config.h to C:\Program Files\Rude\include\rude\config.h
copy rudeconfig.lib to C:\Program Files\Rude\lib\rudeconfig.lib

  1. Global Install

    1. From the Tools menu, select Options (Figure 1)
    2. In the Options Dialogue box, select the "Directories" tab (Figure 2)
    3. Add C:\Program Files\Rude\include\rude to the list of Include Files directories (Figure 3)
    4. Select "Library Files" from the "Show directories for" pull-down menu (Figure 4)
    5. Add C:\Program Files\Rude\lib to the list of Library Files directories (Figure 5)

Step 1

Figure 1

 

Step 2

Figure 2

 

Step 3

Figure 3

 

Step 4

Figure 4

 

Step 5

Figure 5

Quick -n- Dirty

If you do not have root priveleges or do not want to install the component, you can simply copy the header file (config.h) and the static library ( rudeconfig.lib ) to the same directory as your source files. In your source-code files, you will need to include the header file using quotes (") instead of brackets ("<>").

eg:

#include "config.h"

instead of

#include <rude/config.h>