[ECOS] Interprocess communication

Andrew Lunn andrew.lunn@ascom.ch
Fri Mar 1 00:18:00 GMT 2002

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...


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

More information about the Ecos-discuss mailing list