emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: undefined reference getopt_long]


From: Glenn Morris
Subject: Re: address@hidden: undefined reference getopt_long]
Date: Fri, 31 Aug 2007 04:46:57 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Richard Stallman wrote:

> From: "Daniel C. Bastos" <address@hidden>
> Subject: undefined reference getopt_long
> To: address@hidden
> Date: Mon, 27 Aug 2007 11:39:01 -0400
[...]
> gcc -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib    
> -DHAVE_CONFIG_H    -I. -I../src -I/home/dbastos/tmp/emacs/lib-src 
> -I/home/dbastos/tmp/emacs/lib-src/../src -Wl,-znocombreloc -L/usr/X11R6/lib 
> -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib -g -O2 
> -DEMACS_NAME="\"GNU Emacs"\" -DVERSION="\"22.1.50\"" 
> /home/dbastos/tmp/emacs/lib-src/etags.c getopt.o getopt1.o regex.o -lutil    
> -lc -o etags
> /tmp/cc86z2lb.o: In function `main':
> /home/dbastos/tmp/emacs/lib-src/etags.c(.text+0x71f): undefined reference to 
> `getopt_long'


Shouldn't it pick up the definition of getopt_long from getopt1.c in
this case? Or does etags.c need to include "getopt.h" in this case,
rather than <getopt.h>?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]