This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Interprocess communication


On Thu, Feb 28, 2002 at 01:12:40PM -0600, Alfredo Carrillo wrote:
> Hi,
>  
> I am developing a pager simulation under the Linux synthetic target. In 
> order to simulate the pager's face I did a GTK+ program.
> 
> To comunicate the GTK+ process whith eCos program, I am trying to 
> implement a shared memory segment using the UNIX IPC system calls. Below 
> is part of the eCos code I'm using to create the new shared memory segment.


> But the compiler sends this output:
> *shmCr.c:39: undefined reference to `shmget'*
> 
> Does anybody know what is wrong?, or what can I do to communicate both 
> processes?

eCos is not linked with the standard libc which contains these shm*
functions. Hence the linker error. 

The synthetic eCos does have a backdoor to the Linux Kernel. You can
make system calls. There are quite a few mails in the archive about
this, mostly about accessing sockets and the filesystem. They should
give you the idea...

     Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]