[AGENT++] Regd. Building Agent++ in solaris 5.8 using gcc 3.3

Vinoth vinoth at isoftel.com
Wed Mar 10 07:02:09 CET 2004


Hi all,

    I tried building agent++( 3.5.16) library in "SunOS 5.8
Generic_108528-13 sun4u sparc SUNW,UltraAX-i2".  gcc 3.3

    I was able to successfull build libdes and snmp++(3.2.10a) ( using
Makefile.gcc_solaris) , but as i didn't find any "Makefile.gcc_solaris " in
agent++/src folder. I modified the Makefile.Solaris as follows.

  _____


AGENTPPOPTIONS  =

CFLAGS          = -g #-mt $(AGENTPPOPTIONS)    // commented out #-mt
SHARED          = -PIC -KPIC -G
CLINK           = -c -o
ARCHIVE         = ar -rvu
RANLIB          = ranlib

PURIFY          =
CPP             = $(PURIFY) gcc                            // changed CC to
gcc.

RM              = rm -f

include common.mk

  _____


I was able to successfully build the agent++ library.

    Then I tried to write a wrapper around agent++ library. I find problem
in compiling the wrapper library.

    Please find the attached sample cpp and the Makefile used by me. I get
the following error when compiling.

g++ -I../agent++/include -I../snmp++/include -I../libdes -c snmpAgent.cpp -o
./snmpAgent.o
snmpAgent.cpp:6: error: parse error before `{' token
make: *** [snmpAgent.o] Error 1

    Please advice if I have to add anything special to the makefile/code.

Expecting you earliest help,

Thanks,

Vinoth







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20040310/b473941a/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmpAgent.cpp
Type: application/octet-stream
Size: 204 bytes
Desc: not available
Url : http://lists.agentpp.org/pipermail/agentpp/attachments/20040310/b473941a/attachment.dll 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 275 bytes
Desc: not available
Url : http://lists.agentpp.org/pipermail/agentpp/attachments/20040310/b473941a/attachment-0001.dll 


More information about the AGENTPP mailing list