
Hi, I´m trying to compile a simple example in NetBeans 6.8 on Solaris platform, the code is: struct shm_remove { shm_remove() { shared_memory_object::remove("MySharedMemory"); } ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); } } remover; //Create a shared memory object. shared_memory_object shm (create_only, "MySharedMemory", read_write); //Set size shm.truncate(1000); //Map the whole shared memory in this process mapped_region region(shm, read_write); //Write all the memory to 1 std::memset(region.get_address(), 1, region.get_size()); //Launch child process std::string s(argv[0]); s += " child "; if(0 != std::system(s.c_str())) return 1; That's it, no big deal, but when I try to build this I receive the error: Undefinded first referenced symbol in file shm_unlink, sched_yield, shm_open Anyone knows how can I fix this?? Thanks!!! Dann

AMDG Daniel Veneros wrote:
Hi, I´m trying to compile a simple example in NetBeans 6.8 on Solaris platform, the code is: struct shm_remove { shm_remove() { shared_memory_object::remove("MySharedMemory"); } ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); } } remover;
//Create a shared memory object. shared_memory_object shm (create_only, "MySharedMemory", read_write);
//Set size shm.truncate(1000);
//Map the whole shared memory in this process mapped_region region(shm, read_write);
//Write all the memory to 1 std::memset(region.get_address(), 1, region.get_size());
//Launch child process std::string s(argv[0]); s += " child "; if(0 != std::system(s.c_str())) return 1;
That's it, no big deal, but when I try to build this I receive the error: Undefinded first referenced symbol in file shm_unlink, sched_yield, shm_open
Anyone knows how can I fix this??
Interprocess with Sun CC is not supported. Sorry. In Christ, Steven Watanabe

What is AMDG? I searched high and low to figure it out, but my google-fu failed me. Thanks, -Kevin Stevens -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Thursday, January 28, 2010 10:56 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Problem compiling boost libraries AMDG Daniel Veneros wrote:
Hi, I´m trying to compile a simple example in NetBeans 6.8 on Solaris platform, the code is: struct shm_remove { shm_remove() { shared_memory_object::remove("MySharedMemory"); } ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); } } remover;
//Create a shared memory object. shared_memory_object shm (create_only, "MySharedMemory", read_write);
//Set size shm.truncate(1000);
//Map the whole shared memory in this process mapped_region region(shm, read_write);
//Write all the memory to 1 std::memset(region.get_address(), 1, region.get_size());
//Launch child process std::string s(argv[0]); s += " child "; if(0 != std::system(s.c_str())) return 1;
That's it, no big deal, but when I try to build this I receive the error: Undefinded first referenced symbol in file shm_unlink, sched_yield, shm_open
Anyone knows how can I fix this??
Interprocess with Sun CC is not supported. Sorry. In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________

Thank you. I thought there was a technical context I was missing. Seems odd to bring your personal life onto a programming mailing list, but to each their own. -K -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Eric J. Holtman Sent: Thursday, January 28, 2010 11:11 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Problem compiling boost libraries Kevin.Stevens@barclayscapital.com wrote:
What is AMDG? I searched high and low to figure it out, but my google-fu failed me.
It's the first hit! _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________
participants (4)
-
Daniel Veneros
-
Eric J. Holtman
-
Kevin.Stevens@barclayscapital.com
-
Steven Watanabe