Re: ipc
From: Paolo Ornati
Date: Thu Jul 07 2005 - 07:23:06 EST
On Thu, 07 Jul 2005 17:01:51 +0530
raja <vnagaraju@xxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/