Linux i386 (eg. RedHat)
>g++ someprogram.cpp /usr/lib/rudeconfig.lib
OR (to link to dynamic library)
>g++ someprogram.cpp /usr/lib/rudeconfig.so
Borland Bcc32 (command line)
>bcc32 someprogram.cpp rudeconfig.lib
**
Borland CBuilder5 (GUI)
In order to compile programs that use the config library,
you need to add the library to the project.
- From the Project menu, select "Add to Project..."
(Figure 1)
- In the Add to Project Dialog, set the "Files
of Type" selection to Library File (.lib)
(Figure 2)
- Navigate to the directory where the rudeconfig libraries
are located*
(Figure 3)
- Select rudeconfig-cb.lib (Figure 4)**
- Click the "Open" button to finish
adding the file.
- Compile your program as usual (Figure 5)
*
The location of the rudeconfig-cb.lib file depends
on where you installed it. If you followed the installation
instructions for borland, it will be in Borland's
lib directory. If you used the Quick-N-Dirty installation,
then the library file is probably in the same directory
as your program's source code.
** rudeconfig.lib
is used when compiling from the command line, rudeconfig-cb.lib
is used when using CBuilder's GUI interface.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Visual Studio 6 (C++)
- Include the header file as shown below:
#include <rude/config.h>
- To link to the library, you will need to add the
library to project:
- From the Project menu, select "Settings"
(Figure 6)
- In the Settings Dialogue, Select the link tab, then
select the "General" category (Figure
7)
- Add "rudeconfig.lib" to the list
of Object/Library modules (Figure 8)
- You may need to do this for both the release and
the debug configuration
Figure 6
Figure 7
Figure 8
|