Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
undefined reference to __mp_setmem/__mp_copymem/__mp_alloc   Message List  
Reply | Forward Message #965 of 1198 |
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






Sun May 1, 2005 7:28 am

shiva_kumars
Offline Offline
Send Email Send Email

Forward
Message #965 of 1198 |
Expand Messages Author Sort by Date

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...
Sivakumar
shiva_kumars
Offline Send Email
May 1, 2005
7:28 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help