All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: how to link mqueue library
@ 2004-12-16  6:39 Camillo Dell'mour
  2004-12-16  8:02 ` Ron Michael Khu
  0 siblings, 1 reply; 3+ messages in thread
From: Camillo Dell'mour @ 2004-12-16  6:39 UTC (permalink / raw)
  To: linux-c-programming

Hi Ron
the math lib is named libm and the curses lib  libcurses

so the by the -l option in gcc you do not have to write "lib..."

I don't  who the mqueue libary is named, But I think libqueue so you shoult write -lqueue

ron wrots --
> 
> Hello.
> 
> I seem to have a problem linking the mqueue library....
> What's the library name to be added to the "-l" option of cc/gcc?
> If -lm is for the math library... -lcurses for ncurses,
> what's the library name for mqueue? -lmqueue??
> 
> -Ron.
> 


__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201


^ permalink raw reply	[flat|nested] 3+ messages in thread
* assignment makes pointer from integer without a cast?
@ 2004-12-13  0:52 Patrick
  2004-12-13  1:47 ` Hossein Mobahi
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick @ 2004-12-13  0:52 UTC (permalink / raw)
  To: linux-c-programming

Hello,

New to the list and to C. Read O'Reilly's Practical C Programming and
another C book and am now trying to evolve beyond helloworld.c. When I
compile the snippet below, gcc-3.4.2 on Fedora Core 3 spits out:
test2.c:11: warning: assignment makes pointer from integer without a
cast
test2.c:12: warning: passing arg 1 of `usage' from incompatible pointer
type

I just can't figure out why it does that and how to fix it since my
pointer/casting/C knowledge is definitely lacking. The snippet does work
ok. Anyone care to enlighten me?

#include <stdio.h>

void usage(int *prog_ptr)
{
	fprintf(stdout,"progname is: %s\n",*prog_ptr);
}
	
int main(int argc, char *argv[])
{
	int *prog_ptr;
	prog_ptr = basename (argv[0]);
	usage(&prog_ptr);
	return(0);
}

TIA,
Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-16  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-16  6:39 how to link mqueue library Camillo Dell'mour
2004-12-16  8:02 ` Ron Michael Khu
  -- strict thread matches above, loose matches on Subject: below --
2004-12-13  0:52 assignment makes pointer from integer without a cast? Patrick
2004-12-13  1:47 ` Hossein Mobahi
2004-12-13 16:13   ` Francesco Gadaleta
2004-12-13 19:53     ` Jan-Benedict Glaw
2004-12-16  2:07       ` how to link mqueue library Ron Michael Khu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.