Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem compiling boost libraries
From: Kevin.Stevens_at_[hidden]
Date: 2010-01-28 11:01:58


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_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: Thursday, January 28, 2010 10:56 AM
To: boost-users_at_[hidden]
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_at_[hidden]
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.
_______________________________________________


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net