Re: My first? question
Re: My first? question
- Subject: Re: My first? question
- From: Eli Bach <email@hidden>
- Date: Wed, 15 Oct 2008 18:26:08 -0700
On Oct 15, 2008, at 5:54 PM, Juan Falgueras wrote:
Hi all there
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...
I am having several problems with gnu gcc:
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.
$ c++-4.2 warningsfloatint.cpp
warningsfloatint.cpp: In function ‘int main()’:
warningsfloatint.cpp:8: warning: converting to ‘int’ from ‘float’
without the need of
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 "
nor a file of options like in
$ c++-4.2 @/Users/juanfc/c++opts warningsfloatint.cpp
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden