Please Help

RudeCGI™ Open Source C++ CGI Library

Version 5.1.0

Compiling/Linking your C++ application


Linux i386 (eg. RedHat/Fedora)

>g++ someprogram.cpp -lrudecgi

OR if you installed in your home directory

>g++ someprogram.cpp /path/to/librudecgi.a

Borland Bcc32 (command line)

>bcc32 someprogram.cpp rudecgi.lib**

Borland CBuilder5 (GUI)

In order to compile programs that use the CGIParser library, you need to add the library to the project.

  1. From the Project menu, select "Add to Project..." (Figure 1)
  2. In the Add to Project Dialog, set the "Files of Type" selection to Library File (.lib) (Figure 2)
  3. Navigate to the directory where the rudeconfig libraries are located* (Figure 3)
  4. Select rudecgiparser-cb.lib (Figure 4)**
  5. Click the "Open" button to finish adding the file.
  6. Compile your program as usual (Figure 5)

* The location of the rudecgiparser-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.
** rudecgiparser.lib is used when compiling from the command line, rudecgiparser-cb.lib is used when using CBuilder's GUI interface.

 

Figure 1

Figure 1

 

Figure 2

Figure 2

 

Figure 3

Figure 3

 

Figure 4

Figure 4

 

Figure 5

Figure 5

Visual Studio 6 (C++)

  • Include the header file as shown below:

#include <rude/cgiparser.h>

  • To link to the library, you will need to add the library to project:
  1. From the Project menu, select "Settings" (Figure 6)
  2. In the Settings Dialogue, Select the link tab, then select the "General" category (Figure 7)
  3. Select the settings for Win32 Release (Figure 8)
  4. Add "rudecgiparser.lib" to the list of Object/Library modules (Figure 9)
  5. Select the settings for Win32 Debug (Figure 10)
  6. Add "rudecgiparser-debug.lib" to the list of Object/Library modules (Figure 11)

 

Advanced Hints for Visual C++

Visual Studio has several run-time libraries that are used in certain circumstances. If you get errors related to the runtime library in use, you may be using the wrong rudecgiparser library. If you need to know for certain which rudecgiparser library to use for your current configuration, then you need to know what run-time library you are currently compiling against. Follow these steps:

  1. Click on the Project menu
  2. Click Settings...
  3. Click on the C/C++ tab
  4. Select the category "Code Generation"
  5. Look at the section titled "Use run time library"
  6. Whatever run-time library is selected determines which rudecgiparser library to use (see the chart below)
Run Time Library RudeCGIParser library
Single-Threaded rudecgiparser.lib
Multithreaded rudecgiparser-mt.lib
Multithreaded DLL rudecgiparser-dll.lib
Debug Single-Threaded rudecgiparser-debug.lib
Debug Multithreaded rudecgiparser-mt-debug.lib
Debug Multithreaded DLL rudecgiparser-dll-debug.lib

 

 

Figure 6

Figure 6

 

Figure 7

Figure 7

 

Figure 8

Figure 8

 

Figure 9

Figure 9

 

Figure 10

Figure 10

 

Figure 11

Figure 11