site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=w+zVYIrpVZY4NmR7ndT2AZwuYQZnBwlaQpJT2IrjX9I=; b=xZVCPJ/jBsEnkJvlLGxpbOhTQZDWz9ZcxvBij7M/pYp+rlm9mCajJS5EnB7WeWnyeN FFYYeTJ5Em9gFsBivS5hipT8quyU86Cs9ESWtljPnP98Q7LO8jFwEfQwj0IeA+mRUWnS dtCJR6c0ugwbyHQNsILn6tWnOG4ke/faLzrRc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=F9ljzZ4kvEoMyDlx/mLnWwWNLkpHAvrC5xCIt20BU+irEawlrcGmQxhe4EJocjvCdl AIDc4/ctPlP/NJllLO4mU7cFe/AdYOuTr2IdnFUk8c24sM2EsasHjRLhim803z/cMtc5 U0HpswYPInbQt5eWyhXIcujYYQlsNvFR+a1Mw= On Oct 15, 2008, at 5:54 PM, Juan Falgueras wrote: Hi all there I am having several problems with gnu gcc: $ c++-4.2 warningsfloatint.cpp warningsfloatint.cpp: In function ‘int main()’: warningsfloatint.cpp:8: warning: converting to ‘int’ from ‘float’ without the need of nor a file of options like in $ c++-4.2 @/Users/juanfc/c++opts warningsfloatint.cpp _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am absolutely new to this list. My name is Juan and I am teaching at the University of Málaga (mediterranean, south of Spain), now happily with 24 iMacs under LDAP and ARD, the experience, after so many years of Linux and also (no way, Windows) is being so genial that I am a bit angry not having had it before. But we live with many others professors that use Linux as base and we decided time ago to use the greater common divisor: only use Terminal+Simple-Text-Editor. My choice for the last has been TextWrangler: very very good (is not TextMate, but it's quality/ price is infinite). For C++ coding, using TextWrangler is fine, if you don't want to use XCode (which is also free, and included with the developer tools). And there are a number of cli text editing tools included, like vi, ed, emacs, etc... Why, by default is activated the 4.01 instead the 4.2 (not to speak the last current one : 4.3.2, that its not yet there) Is there some specific bug fix or feature in 4.2 (or 4.3.2) that you need? Or is it just that it has a higher version number? Apple makes their own modifications to gcc (their own bug fixes, optimizations and better support for Objective-C), and then does a lot of QA on making sure the compiler works right. They are always going to be several revisions behind, just because the compilers have to work right. Previous versions of Xcode included a 'gcc_select' command, to change the default compiler, but it no longer seems to be included. However, past fairly trivial uses of gcc (like compiling a single file into an executable), you generally use a script or makefile that you have explicitly use whichever version of gcc you want by specifying the full path to gcc in a variable. Is it possible to launch the editor with any script or something directly moving you to at least the first compiler error? Building in XCode makes this happen. TextWrangler has some support for executing unix commands, and you may be able to write scripts to parse the output in TextWrangler. Why is so complicate activate _all_ the compiler Warning-on options and are near all of then deactivated? I would like to see the warnings in the student Terminal window. It will help them a lot. alias c+++="c++ -pedantic -pedantic-errors -Wextra -Wall - Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts - Wcomment -Wconversion -Wfatal-errors -Wfloat-equal -Wformat -Wno- format-extra-args -Wformat-nonliteral -Wformat-security -Wformat- y2k -Wimplicit -Wimport -Winit-self -Winline -Wlong-long - Wmissing-braces -Wmissing-field-initializers -Wmissing-format- attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmost -Wno- multichar -Wpadded -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wswitch-default -Wswitch-enum -Wundef -Wunknown-pragmas - Wunreachable-code -Wunused -Wunused-function -Wunused-label - Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings " Why not a real -WALL? How to approach to that? I don't think Apple modifies gcc a lot in this area. And, for non-trivial uses, you can make it so all this is just done in a single place, either with an alias or a script variable, so it doesn't have to be everywhere. You could just create an alias file or basic scripts for your students that set this up, so they don't have to worry about all this. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach