help with C++ and FastCGI

Mark Brown (
Fri, 07 Jun 1996 09:21:11 -0400

Message-Id: <>
Subject: help with C++ and FastCGI
Date: Fri, 07 Jun 1996 09:21:11 -0400
From: Mark Brown <>

Here's another message that bounced and got misplaced.
(These bounces were caused by a majordomo mis-configuration,
now cured.)  Reply at the bottom.


- ------- Forwarded Message
Date: Mon, 27 May 1996 21:35:31 -0500 (CDT)
Subject: help with c++ and fast cgi

I am trying to get a version of fast cgi to run with c++ but I am
getting an error when I try to compile with CC.

here is my compile line
CC -o run test.C -Iinclude libfcgi/libfcgi.a

i get this back
undefined __eprintf

but when I run this
g++ -o run test.C -Iinclude libfcgi/libfcgi.a

it works fine.

the symbol __eprintf is undefined in the libfcgi.a file using nm.

any ideas?

- ------- End of Forwarded Message

Moses, your problem sounds platform/compiler specific.  For instance,
on Digital UNIX, nm tells me:

    alpha> nm libfcgi.a | grep printf
    sprintf                | 0000000000000000 | U | 0000000000000008
    FCGI_fprintf           | 0000000000003712 | T | 0000000000000008
    FCGI_printf            | 0000000000003936 | T | 0000000000000008
    FCGI_vfprintf          | 0000000000004096 | T | 0000000000000008
    FCGI_vprintf           | 0000000000004272 | T | 0000000000000008
    vfprintf               | 0000000000000000 | U | 0000000000000008

sprintf is called from fcgiapp and vfprintf is called from fcgi_stdio.

Perhaps somebody else has an idea.

The next version of the header files has the conditional 'extern "C"' stuff
for the benefit of C++.  Is anyone already using C++ with FastCGI?


------- End of Forwarded Message