unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [dbast0s@yahoo.com.br: undefined reference getopt_long]
Date: Fri, 31 Aug 2007 04:46:57 -0400	[thread overview]
Message-ID: <uvmyw8yttq.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <E1IQ3Im-0008Pm-Go@fencepost.gnu.org> (Richard Stallman's message of "Tue, 28 Aug 2007 11:48:24 -0400")

Richard Stallman wrote:

> From: "Daniel C. Bastos" <dbast0s@yahoo.com.br>
> Subject: undefined reference getopt_long
> To: bug-gnu-emacs@gnu.org
> 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	other threads:[~2007-08-31  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1IQ3Im-0008Pm-Go@fencepost.gnu.org>
2007-08-31  8:46 ` Glenn Morris [this message]
2007-09-01  4:06   ` [dbast0s@yahoo.com.br: undefined reference getopt_long] Richard Stallman
2007-09-12  7:46     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uvmyw8yttq.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).