Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith) Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: tanttank demo linking problem in CW Date: Tue, 09 Sep 1997 16:04:29 GMT Organization: SN Systems Lines: 21 Message-ID: <5v3rno$aa17@chuka.playstation.co.uk> References: <3412F639.5F1C6C64@zicorp.com> <01bcbc11$baf64960$9fbf43ce@wkwerner> <34140C26.DB8F698F@msu.edu> <01bcbcaa$369dba60$b4bf43ce@wkwerner> <5v36eb$aa15@chuka.playstation.co.uk> <34156375.B91F6798@msu.edu> Reply-To: gil@snsys.com NNTP-Posting-Host: gil.snsys.com X-Newsreader: Forte Free Agent 1.0.82 Charles Henrich wrote: >Heh, thanks! I didnt know that one :) Wouldnt -Wall enable that option >however? Afraid not, squire. -Wall enables most of the individual -W options but these are compiler warnings only, whereas -warn-common is a linker option. If your makefile invokes ld directly then you need to add it there (most likely on the end of the LDFLAGS definition), otherwise you can pass it via gcc as "-Wl,warn-common". According to the docs, there are some warnings which aren't enabled even by -Wall and which have to be explicitly enabled, usually because they're older usage which works fine and which would just tick you off. If you put your program through lint, for example, you'd still get complaints even if -Wall hadn't shown anything up. Gil Jaysmith SN Systems Software Ltd, makers of dev software for PSX, N64, etc... http://www.snsys.com Disclaimer: the ads are my employers' but the opinions are mine.