OK, awake again and looking into the beolow problem more... my program pulls a message off of a UDP datagram socket with int s = socket(AF_INET, SOCK_DGRAM, 0); int iVal; struct sockaddr_in oFromAddr; char msg[1024]; int iMsgLen; socklen_t iFromLen; oMyAddr.sin_family = AF_INET; oMyAddr.sin_addr.s_addr = htonl(INADDR_ANY); oMyAddr.sin_port = htons(5060); iVal = bind(s, (struct sockaddr *) &oMyAddr, sizeof (oMyAddr)); int iVal = recvfrom(s, (void *)&msg, iMsgLen, 0, (struct sockaddr *) &oFromAddr, &iFromLen); When I link to libboost_regex and i get past this last line, the msg buffer is still filled with null characters and the return value of recvfrom is 0-it didnt get anything off of the socket. All I am doing is linking the lib, im not calling on headers or the lib in any way. Taking -lboost_regex out fo the linker flags fixes that issue. Also, when i create char msg[1024], the contents of msg are trash, not repeating null characters(as they are when boost_regex is linked to). What is boost doing, im pretty new to it.. thanks, dave
Well, more likely my mistake, ive been up awhile.. I installed the boost libs onto my gentoo machine with emerge.
I then added -lboost_regex to my linker flags..thats it. When I run my app, it hangs, I think when waiting on pulling data of off a UDP socket. Though I cant tell, I'm about to crash and its been one of those days. But I do know everything is back to normal when I take -lboost_regex out of the flags again.
I know I'm awfully vague due to lazy/tiredness, but does this ring a bell with anyone? I've installed boost the traditional way (bjam) on other linux distros before without any issue, but ive never tried emerge before. I dont know if this has something to do with it, or i am somehow missing something really obvious..
Thanks for bearing with me, Dave _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users