[squid-users] Editing Makefile.am to include static libraries

Amos Jeffries squid3 at treenet.co.nz
Wed Mar 25 11:02:33 UTC 2015


On 25/03/2015 11:26 p.m., Priya Agarwal wrote:
> I could link the libraries. The problem was that libraries were C and thus
> g++ wasn't creating right symbols.

.h files fro C libraries need to contain the syntax:

#if defined(__cplusplus)
extern "C" {
#endif

  ... library API ...

#if defined(__cplusplus)
}
#endif

> 
> I have another question.
> what part of the source code handles shutdown or exiting (ctrl+c).

src/main.cc

Amos


More information about the squid-users mailing list