For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2004 > Using system V IPC









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using system V IPC
Zaw

2004-09-22, 3:58 am

I downloaded unpv22e from internet.
And I configured to run svmsg/msgcreate.c svmsg/msgsnd.c svmsg/msgrcv.c.
Although I did step by step from read me file, I just could configured.
After that, When I compile above programs, I found many errors.
How can I run above programs?
Rich Teer

2004-09-22, 4:01 pm

On Wed, 22 Sep 2004, Zaw wrote:

> I downloaded unpv22e from internet.
> And I configured to run svmsg/msgcreate.c svmsg/msgsnd.c svmsg/msgrcv.c.
> Although I did step by step from read me file, I just could configured.
> After that, When I compile above programs, I found many errors.
> How can I run above programs?


Try downloading the examples from my book (see www.rite-group.com/rich);
depending on which OS you're using, compiling them should be easy.
(Tested using Solaris, but I don't think there's anything platform
specific in the Sys V IPC examples.)

HTH,

--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming",
published in August 2004.

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Dragan Cvetkovic

2004-09-22, 4:01 pm

Rich Teer <rich.teer@rite-group.com> writes:

> On Wed, 22 Sep 2004, Zaw wrote:
>
>
> Try downloading the examples from my book (see www.rite-group.com/rich);
> depending on which OS you're using, compiling them should be easy.
> (Tested using Solaris, but I don't think there's anything platform
> specific in the Sys V IPC examples.)


Except for {shm,msg,sem}ids(2), of course.

Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Zaw

2004-09-23, 8:57 am

Dragan Cvetkovic <me@privacy.net> wrote in message news:<lm65669see.fsf@privacy.net>...
> Rich Teer <rich.teer@rite-group.com> writes:
>
>
> Except for {shm,msg,sem}ids(2), of course.
>
> Dragan



Dear Sir Rich Teer and all,

Thanks a lot for ur reply....
Pls may I tell again my problem detail.....
I downloaded unpv22e from Internet to test Sys V IPC......
And then, I try to run many files from that folder....
When I compile some files the path are unpv22e/svmsg/msgcreate.c,
msgsnd.c , msgrcv.c, limits.c, I found the similar errors firstly. The
errors are
'MSG_R'undeclared (Each undeclared identifier is reported only once
for each function it appears in.)
and 'MSG_W' undeclared(first use in this function)
and also similar from msgsnd.c, with the above error and the next
error is
dereferencing pointer to incomplete type
So, I configured the header file unpipc.h and comment out some
prototypes...
After that, when I compile them again, I found the other errors....
In that time, the errors are:
In function main:undefined reference Msgget()
undefined reference Getopt()
undefined reference Ftok()
undefined reference err_quit()
So, would u mind advising to solve those errors?...

Thanks in advance,
Zaw
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com