|
CGI C++ Variable Wrapper: DocumentationC++ CGI Wrapper Documentation -- http://www.purplepixie.org/cgi * COMPILATION: Compiling the Wrapper Into Your Code * --------------------------------------------------------------- You can include the wrapper into your project very simply one You can accomplish this by having the two files: cgi_interface.cpp and In your project directory and including the .cpp file with #include "cgi_interface.cpp" Somewhere near the top of your main program code. This, as I This will work and most sensible compilers will skip most of On newer versions of GCC you may have to use the stdc++ library A slightly quicker and perhaps neater option is to pre-compile First, in the src directory of the cgi_wrapper download you $ gcc -lstdcc++ -c cgi_wrapper.cpp -o cgi_wrapper.o Missing the -c flag will attempt to make gcc build an executable Now, move the cgi_wrapper.h and .o files into your development $ gcc -lstdc++ MyProject.cpp cgi_wrapper.o -o MyProject © Copyright 2004-2007 purplepixie.org, all rights reserved. |