[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to link cgicc program

From: Clay Dowling
Subject: Re: Unable to link cgicc program
Date: Fri, 5 Nov 2021 11:15:33 -0400

Try -lcgicc, which will tell the linker that you want to link to the cgicc library.  It won't automatically do that unless you explicitly tell it.

On Thu, Nov 4, 2021 at 8:28 PM Family <> wrote:

I am having a problem with cgicc-3.2.19, and am hoping you can advise.

I downloaded cgicc-3.2.19.tar.gz from your website, and built and installed it as per your
instructions in the INSTALL file.  Then I found that the example
directory did not have a makefile in it.  Consequently, I was unable to

So I created an Eclipse C++ project, and put in it.  I was
able to successfully compile it, but got a bunch of link errors.  I
also got the same errors from the command line:

    $ g++ -o "CgiTest" ./src/CgiTest.o
    ./src/CgiTest.o: In function `main':
      undefined reference to `cgicc::Cgicc::Cgicc(cgicc::CgiInput*)'
      undefined reference to `cgicc::HTTPHTMLHeader::HTTPHTMLHeader()'

I got the same errors when I did:
    $ g++ -L/usr/lib64 -o "CgiTest" ./src/CgiTest.o

Finally, I did
    $ nm -aC /usr/lib64/
and the following came out for the Cgicc constructor:
    0000000000017fc0 T cgicc::Cgicc::Cgicc(cgicc::CgiInput*)
which appears to show that the library was in fact built correctly.

What am I doing wrong?  Why is the g++ linker not able to link the

Any help much appreciated!


R. Krishnaswamy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]