Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #126
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: Compilation order |
| Date | 2011-05-29 12:48 +0000 |
| Organization | Dis (not Dat) Organisation |
| Message-ID | <irtfad$brp$3@reversiblemaps.ath.cx> (permalink) |
| References | <ab6994bc-8b2d-4e9f-8f6c-f756ae1c3fa3@h36g2000pro.googlegroups.com> |
On 2011-05-27, wij@seed.net.tw <wij@seed.net.tw> wrote: > Hi: > I have a program to update on Fedora 15(g++ version 4.6.0), but > the compiled executable is wrong. Let me make an example. I had > 2 files t1.cpp t2.cpp, t1 contains the main function. If I issue > command "g++ t1.cpp t2.o". A static array in t2.o is not initialized. > The command "g++ t2.o t1.cpp" solves the problem. But on earlier > versions of g++, the same problem happened. In all, with g++ 4.6.0 > I should use g++ t2.o t1.cpp, with earlier versions I should use > g++ t1.cpp t2.o. What is the problem and how should I fix it? > Thanks in advance. dunno, try compiling with all the warnings turned on. -- ⚂⚃ 100% natural
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Find similar
Compilation order wij@seed.net.tw - 2011-05-26 23:06 -0700
Re: Compilation order David Brown <david@westcontrol.removethisbit.com> - 2011-05-27 09:00 +0200
Re: Compilation order Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-27 09:59 +0100
Re: Compilation order wij@seed.net.tw - 2011-05-27 05:56 -0700
Re: Compilation order Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-27 14:11 +0100
Re: Compilation order David Schwartz <davids@webmaster.com> - 2011-05-27 12:23 -0700
Re: Compilation order wij@seed.net.tw - 2011-05-27 18:56 -0700
Re: Compilation order David Schwartz <davids@webmaster.com> - 2011-05-27 22:52 -0700
Re: Compilation order wij@seed.net.tw - 2011-05-28 08:46 -0700
Re: Compilation order David Schwartz <davids@webmaster.com> - 2011-06-03 04:30 -0700
Re: Compilation order Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-05-27 14:31 +0100
Re: Compilation order David Brown <david@westcontrol.removethisbit.com> - 2011-05-30 08:56 +0200
Re: Compilation order Sergei Organov <osv@javad.com> - 2011-05-27 11:37 +0400
Re: Compilation order Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-27 10:00 +0100
Re: Compilation order Jasen Betts <jasen@xnet.co.nz> - 2011-05-29 12:48 +0000
csiph-web