public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: Carla Nunes <carlanunes@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: gcc compile options
Date: Thu, 05 Jul 2001 18:15:00 -0000	[thread overview]
Message-ID: <orr8vu7t8z.fsf@guarana.lsd.ic.unicamp.br> (raw)
In-Reply-To: <20010706001202.81683.qmail@web12108.mail.yahoo.com>

On Jul  5, 2001, Carla Nunes <carlanunes@yahoo.com> wrote:

> compile:
> gcc -x c++ -g -Iincdir -c srcdir/*.c objdir/*.o -mthreads

Use g++ instead of gcc -x c++.

Note that it doesn't make sense to list object files when you use -c:
only source files can be listed.  In this case, you can use -o to
specify the output object file name, but then, you can only specify
one source file per compilation.

> gcc -lsomelib -o execfile objfiles

Always list libraries after object files they depend on.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

  reply	other threads:[~2001-07-05 18:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-05 17:12 Carla Nunes
2001-07-05 18:15 ` Alexandre Oliva [this message]
2001-07-05 18:40 Peter Kurpis
2001-07-06 11:33 Peter Kurpis
2006-11-08  7:30 GCC COMPILE OPTIONS Lalit Seth
2006-11-08 15:54 ` Ian Lance Taylor
2006-11-08 17:32   ` Tim Prince
2006-11-10 11:30     ` Lalit Seth
2006-11-10 11:34       ` Andrew Haley

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

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

  git send-email \
    --in-reply-to=orr8vu7t8z.fsf@guarana.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=carlanunes@yahoo.com \
    --cc=gcc-help@gcc.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.
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).