[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VS: Step-by-step instructions to install Cgicc.
From: |
Jeremy Cowgar |
Subject: |
Re: VS: Step-by-step instructions to install Cgicc. |
Date: |
Thu, 08 Mar 2001 10:09:06 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux 2.4.0 i686; en-US; m18) Gecko/20010131 Netscape6/6.01 |
On my installation, I did this:
# configure
# make
# make install
that put the lib and include files in /usr/local/lib ... and /include
respectivly.
Now, when I compile a program, I do it like:
# c++ -I/usr/local/include -L/usr/local/lib upload.cpp -o upload.cgi -lcgicc
... It's important to note that under your "includedir" there should be
another directory called cgicc, and under that, will be the files like
CgiDefs.h, Cgicc.h, etc....
i.e.
/home/timo/develop/upload.cpp
/home/timo/develop/includedir/cgicc/CgiDefs.h
/home/timo/develop/includedir/cgicc/Cgicc.h
...etc...
/home/timo/develop/libdir/libcgicc.la
/home/timo/develop/libdir/libcgicc.a
/home/timo/develop/libdir/libcgicc.so
...etc...
If this does not help, maybe you can send a code snipplet as well as
your directory layout:
/home/timo/develop# ls -lR > dir.layout
Jeremy - address@hidden
Timo Kahkonen wrote:
I tried this
g++ -o upload.cgi upload.cpp -Iincludedir -Llibdir -lcgicc
but the error remains:
upload.cpp:28: cgicc/CgiDefs.h: No such file or directory
upload.cpp:29: cgicc/Cgicc.h: No such file or directory
upload.cpp:30: cgicc/HTMLClasses.h: No such file or directory
Timo Kähkönen
-----Alkuperäinen viesti-----
Lähettäjä: address@hidden
[mailto:address@hidden Stephen F. Booth
Lähetetty: 1. helmikuuta 2001 4:43
Vastaanottaja: address@hidden; address@hidden
Aihe: RE: Step-by-step instructions to install Cgicc.
You need to add the cgicc directory to your include path, and link to the
cgicc library. Depending on whether or not you installed the package, the
way to do this varies considerable. Basically you need a -Iincludedir and
a -Llibdir -lcgicc added to your compile command.
Thanks a lot. I succeed in running test.cgi and dns.cgi with your help. In
demo directory there was not upload.cpp or upload.cgi, but there
was the two
others. I found this upload.cpp by other way and copied it to
html/cgi -directory. I tried to compile it (in html/cgi/) by:
g++ -o upload.cgi upload.cpp
But there came an error:
upload.cpp:28: cgicc/CgiDefs.h: No such file or directory
upload.cpp:29: cgicc/Cgicc.h: No such file or directory
upload.cpp:30: cgicc/HTMLClasses.h: No such file or directory
_______________________________________________
help-cgicc mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cgicc
_______________________________________________
help-cgicc mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cgicc