I can't change the header files of library. Therefore when I included it in my code I did
extern "C" {...
}
...
....
usdpaa_if.h \
usdpaa_if.c
On Wed, Mar 25, 2015 at 4:32 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users