I'm using G++ compiler on solaris8 box, there was a problem while
compiling at set_new_handler()...the header at new.h doesn't have
throw prototype..whereas in mpatrol.h..it throws error. I've mdified
the maptrol lib and compiled...everything compiles properly..but when
linking...it throws error as below
tage -lpitm_app_solaris -lEventMgr -lm -lsocket -lnsl -lpthread -lrt
-lposix4 -lsocket -lnsl
sm_fdet_init.o: In function `processCallback(void)':
sm_fdet_init.o(.text+0x9c8): undefined reference to `__mp_setmem'
sm_fdet_init.o: In function `listen_on_stby(void)':
sm_fdet_init.o(.text+0xbac): undefined reference to `__mp_setmem'
sm_fdet_linkerror.o: In function `sm_fdet_linkerror(void)':
sm_fdet_linkerror.o(.text+0x2d8): undefined reference to `__mp_setmem'
sm_fdet_linkerror.o: In function `file_report(int, char *, char *)':
sm_fdet_linkerror.o(.text+0x660): undefined reference to `__mp_setmem'
sm_fdet_linkerror.o(.text+0x7f8): undefined reference to `__mp_setmem'
sm_fdet_linkerror.o(.text+0x8f4): more undefined references to
`__mp_setmem' follow
sm_fdet_linkerror.o: In function `getInterfaceAddr(char *, char *)':
sm_fdet_linkerror.o(.text+0x17ec): undefined reference to
`__mp_copymem'
sm_fdet_linkerror.o: In function `operator new [](unsigned int, char
const *, char const *, unsigned long)':
sm_fdet_linkerror.o(.gnu.linkonce.t.__vn__FUiPCcT1Ul+0x28): undefined
reference to `__mp_alloc'
collect2: ld returned 1 exit status
*** Error code 1
clearmake: Error: Build script failed for "sm_fdet"
Is there any problem in building the library..I've inclued all the
threee lib of maptrol.
Still do I need to modify this function to global or something other.
Thanks in advance.
Sivakumar