LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2006, 03:00 AM   #1
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73
Blog Entries: 3

Rep: Reputation: 15
shared memory


Hi,

I am having 2 programs for server & client shared memory ,
I want to check,how memory segments are working.

Can any one give me brief idea about.
 
Old 12-20-2006, 06:14 AM   #2
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Hello

I am unable to compile this programs.
http://cis.poly.edu/muller/CS623/unixsharedmemory.htm
==========================================
: gcc -o client_shm client_shm.c
/tmp/cc4rdKrD.o(.text+0x4a): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0x7e): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0x90): In function `main':
: undefined reference to `sem_create'
/tmp/cc4rdKrD.o(.text+0xae): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0xc0): In function `main':
: undefined reference to `sem_create'
/tmp/cc4rdKrD.o(.text+0xde): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0x112): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0x145): In function `main':
: undefined reference to `err_sys'
/tmp/cc4rdKrD.o(.text+0x156): In function `main':
: undefined reference to `sem_close'
/tmp/cc4rdKrD.o(.text+0x167): In function `main':
: undefined reference to `sem_close'
/tmp/cc4rdKrD.o(.text+0x189): In function `client':
: undefined reference to `sema_wait'
/tmp/cc4rdKrD.o(.text+0x1d9): In function `client':
: undefined reference to `sys_err_str'
/tmp/cc4rdKrD.o(.text+0x237): In function `client':
: undefined reference to `sem_signal'
/tmp/cc4rdKrD.o(.text+0x24: In function `client':
: undefined reference to `sem_wait'
/tmp/cc4rdKrD.o(.text+0x28f): In function `client':
: undefined reference to `sem_signal'
/tmp/cc4rdKrD.o(.text+0x2a0): In function `client':
: undefined reference to `sem_wait'
/tmp/cc4rdKrD.o(.text+0x2ec): In function `client':
: undefined reference to `sem_signal'
collect2: ld returned 1 exit status
[root@localhost 20]# gcc -o client_shm client_shm.c
/tmp/cccuk2D3.o(.text+0x4a): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0x7e): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0x90): In function `main':
: undefined reference to `sem_create'
/tmp/cccuk2D3.o(.text+0xae): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0xc0): In function `main':
: undefined reference to `sem_create'
/tmp/cccuk2D3.o(.text+0xde): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0x112): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0x145): In function `main':
: undefined reference to `err_sys'
/tmp/cccuk2D3.o(.text+0x156): In function `main':
: undefined reference to `sem_close'
/tmp/cccuk2D3.o(.text+0x167): In function `main':
: undefined reference to `sem_close'
/tmp/cccuk2D3.o(.text+0x189): In function `client':
: undefined reference to `sema_wait'
/tmp/cccuk2D3.o(.text+0x1d9): In function `client':
: undefined reference to `sys_err_str'
/tmp/cccuk2D3.o(.text+0x237): In function `client':
: undefined reference to `sem_signal'
/tmp/cccuk2D3.o(.text+0x24: In function `client':
: undefined reference to `sem_wait'
/tmp/cccuk2D3.o(.text+0x28f): In function `client':
: undefined reference to `sem_signal'
/tmp/cccuk2D3.o(.text+0x2a0): In function `client':
: undefined reference to `sem_wait'
/tmp/cccuk2D3.o(.text+0x2ec): In function `client':
: undefined reference to `sem_signal'
collect2: ld returned 1 exit status

==========================

is it correct?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared memory yhus Programming 1 09-28-2006 02:24 PM
using shared memory clunix Programming 2 04-08-2006 12:13 PM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
shared memory blackzone Programming 1 10-14-2004 11:52 AM
About Shared Memory...? aegis_shiva Programming 1 08-25-2004 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration