Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #67825

Re: Trying to be generic with the linker (ld instead of g++)

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c++
Subject Re: Trying to be generic with the linker (ld instead of g++)
Date Tue, 20 Aug 2019 15:50:51 -0700
Organization None to speak of
Lines 22
Message-ID <lnk1b730z8.fsf@kst-u.example.com> (permalink)
References <fd41e1db-a2dc-445e-8ecb-f176d3361e03@googlegroups.com> <6NQ6F.27976$qd4.16675@fx17.am4>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info reader02.eternal-september.org; posting-host="a6d658d4a2a10098aaf65c730678ffc4"; logging-data="10253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+f1pDJ1XS0hhfD0a0DaocM"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock sha1:HrRUFRA75gG5Ox8u7kM1Qk3V07w= sha1:Wsd3C0JUnbi7nJ96bfPSwoTpKww=
Xref csiph.com comp.lang.c++:67825

Show key headers only | View raw


Bart <bc@freeuk.com> writes:
[...]
> When I wanted to find out how ld was being invoked (from gcc in my case 
> not gc++) I temporarily replaced ld.exe (this was on Windows) with this 
> program that lists the command line parameters:
>
>      #include <stdio.h>
>      int main (int n, char** a) {
>          for (int i=1; i<=n; ++i) {
>              printf("%d: %s\n",i,*a);
>              ++a;
>          }
>      }

"gcc -v" or "g++ -v" is easier.

[...]

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Trying to be generic with the linker (ld instead of g++) Frederick Gotham <cauldwell.thomas@gmail.com> - 2019-08-20 04:09 -0700
  Re: Trying to be generic with the linker (ld instead of g++) Bart <bc@freeuk.com> - 2019-08-20 12:25 +0100
    Re: Trying to be generic with the linker (ld instead of g++) Frederick Gotham <cauldwell.thomas@gmail.com> - 2019-08-20 04:34 -0700
      Re: Trying to be generic with the linker (ld instead of g++) Chris Vine <chris@cvine--nospam--.freeserve.co.uk> - 2019-08-21 01:07 +0100
    Re: Trying to be generic with the linker (ld instead of g++) Keith Thompson <kst-u@mib.org> - 2019-08-20 15:50 -0700
      Re: Trying to be generic with the linker (ld instead of g++) Bart <bc@freeuk.com> - 2019-08-21 00:27 +0100
  Re: Trying to be generic with the linker (ld instead of g++) Ralf Fassel <ralfixx@gmx.de> - 2019-08-20 14:05 +0200
  Re: Trying to be generic with the linker (ld instead of g++) David Brown <david.brown@hesbynett.no> - 2019-08-20 14:10 +0200
  Re: Trying to be generic with the linker (ld instead of g++) Keith Thompson <kst-u@mib.org> - 2019-08-20 15:58 -0700
  Re: Trying to be generic with the linker (ld instead of g++) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-08-22 04:47 -0700
    Don't extensions still work? (Was: Trying to be generic with the linker (ld instead of g++)) gazelle@shell.xmission.com (Kenny McCormack) - 2019-08-22 12:12 +0000
      Re: Don't extensions still work? (Was: Trying to be generic with the linker (ld instead of g++)) David Brown <david.brown@hesbynett.no> - 2019-08-22 15:08 +0200
      Re: Don't extensions still work? (Was: Trying to be generic with the linker (ld instead of g++)) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-08-22 12:57 -0700

csiph-web