W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

RE: build CGI with libwww

From: Randy Higginbotham <rhigg@cfl.rr.com>
Date: Sun, 25 Feb 2001 08:59:30 -0500
To: "#LI CHAOHUI#" <P145163551@ntu.edu.sg>, <www-lib@w3.org>
Did you "make install" the library? This must be done as superuser.


-----Original Message-----
From: www-lib-request@w3.org [mailto:www-lib-request@w3.org]On Behalf Of
Sent: Sunday, February 25, 2001 5:02 AM
To: 'www-lib@w3.org'
Subject: build CGI with libwww

Hi, everyone:

I have tried to build a CGI program using libwww.  However, it seems that
libwww can not be linked into CGI program.  To test it, I built a simple
program as follows:

#include <iostream>
#include <string>

int main()
  cout << "Content-type: text/html" << endl << endl;
  cout << "<html>" << endl;
  cout << "It is a test message! << endl;
  cout << "</html>" << endl;

When I compile the above code without linking to libwww, the generated cgi
program works normally and is able to output the text specified in the code.
However, if I compile the program with the following command:

g++ -o test.cgi test.cc `libwww-config --cflags` `libwww-config --libs`

the generated cgi program can not work.

Does anybody have idea about this case?  Is libwww able to be used to create
cgi program?

Thanks a lot

Susan Lee
Received on Sunday, 25 February 2001 09:00:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC