* compile semaphore and share memory is not working!
@ 2001-10-28 14:37 Anh Nguyen
2001-10-29 2:09 ` Pavel Tsekov
0 siblings, 1 reply; 2+ messages in thread
From: Anh Nguyen @ 2001-10-28 14:37 UTC (permalink / raw)
To: cygwin
Hello everyone. I have problem compiling semaphore and
share memory in cygwin. I did download and install the
icp packages. However, when i compile my programs i
get these errors:
/cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x33a):server2.c:
undefined reference to `shmat'
/cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x1884):server2.c:
undefined reference to `shmget'
collect2: ld returned 1 exit status
Anyone has any ideas what is wrong with these. Note, i
did include
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/msg.h>
in my program.
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compile semaphore and share memory is not working!
2001-10-28 14:37 compile semaphore and share memory is not working! Anh Nguyen
@ 2001-10-29 2:09 ` Pavel Tsekov
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Tsekov @ 2001-10-29 2:09 UTC (permalink / raw)
To: Anh Nguyen; +Cc: cygwin
Anh Nguyen wrote:
>
> Hello everyone. I have problem compiling semaphore and
> share memory in cygwin. I did download and install the
> icp packages. However, when i compile my programs i
> get these errors:
>
> /cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x33a):server2.c:
> undefined reference to `shmat'
> /cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x1884):server2.c:
> undefined reference to `shmget'
> collect2: ld returned 1 exit status
>
> Anyone has any ideas what is wrong with these. Note, i
> did include
> #include <sys/ipc.h>
> #include <sys/sem.h>
> #include <sys/shm.h>
> #include <sys/msg.h>
> in my program.
do you specify the library containing the IPC functions on the
gcc command line ?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-29 2:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-28 14:37 compile semaphore and share memory is not working! Anh Nguyen
2001-10-29 2:09 ` Pavel Tsekov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).