Re: ipc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 07 Jul 2005 17:01:51 +0530
raja <[email protected]> wrote:

> Hi,
> While working with posix ipc i used the function mq_open.
> When i compiled using gcc i am getting error as
>  
> : undefined reference to `mq_open'
> collect2: ld returned 1 exit status
>  
> will you please tell me how to avoid that.

Also this has nothing to do with kernel, stop posting here these
questions.

----

You need to tell GCC to use "libmqueue"... something like this:

	gcc -Wall -O2 -o prog prog.c -lmqueue


Please read this book for other generic programming questions:
	http://www.advancedlinuxprogramming.com/

And use Google.

-- 
	Paolo Ornati
	Linux 2.6.12.2 on x86_64
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux