Re: c++ features



On Thu, Oct 08 2009, Gabor Urban wrote:

Hi,

the main point of C++ and Linux, that you may have a large number of
tools to use. SOme prefer IDE tools, like KDevelop for example, but
some prefer standard language sensitive editor which support code
writing, compiling, debugging. I would suggest to use Emacs or Vim
(simple editors, but powerfull extensions).. :-))

Emacs 23 + CEDET seems to have all the features of of the so
called IDE's, including language specific parsers and semantic
analysis, so one may have the best of both worlds.

Also, if you want portable C++, you could try compiling with
this set of flags in your makefile:

--8<---------------cut here---------------start------------->8---
## Debugging option for the compiler
CXXDEBUG=-g

## @brief Optimizing options
CXXOPTS=-pipe -O3 -g

## Warnings. You can never have too many warnings
CXXWARNS=-std=c++98 -pedantic -Wall \
-Wconversion -Wabi -Woverloaded-virtual \
-Wshadow -Wextra -Wpointer-arith \
-Wcast-qual -Wcast-align -Wwrite-strings \
-Wswitch-default -Wpacked -Wnormalized=nfc \
-Weffc++ -Wstrict-null-sentinel -Wctor-dtor-privacy \
-Wold-style-cast -Wsign-promo -Wmissing-include-dirs\
-Wfloat-equal -Wnon-virtual-dtor -Wformat=2 \
-Wformat-security -Wformat-nonliteral -Winit-self \
-Wuninitialized -Wswitch-enum -Wstrict-overflow=5 \
-Wundef -Dlint -ffor-scope \
-fno-gnu-keywords -fshort-enums -fno-common \
-Wmissing-field-initializers
--8<---------------cut here---------------end--------------->8---

And yes, this is from a live project, so I actually use these :-)

manoj
--
If God had intended Man to program, we'd be born with serial I/O ports.
Manoj Srivastava <srivasta@xxxxxxx> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: [PATCH]: Cleanup: Remove gcc format string warnings when compiling with -Wformat-securit
    ... Remove gcc format string warnings when compiling with -Wformat-security ...
    (Linux-Kernel)
  • Problem with initonly: DSoundHelper
    ... compiling problem I'm dealing with, so I believe posting here is reasonable ... I'm trying to set sound effects in DirectSound. ... But, this generates 57 warnings, and the typical warning is: ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: tree errors
    ... the inability to post the code he is actually compiling, ... If your idea of diagnostics is compiler warnings maybe I'm wrong but if ... If gcc (with appropriate options; ... it calls them warnings or errors, you need to pay attention to them. ...
    (comp.lang.c)
  • Re: WARNING: Unable to find dependency mscorlib ...
    ... compiling them to version 1.0 of the Framework. ... Which is pretty strange ... because I had found in the past that 1.1 assemblies did not work with 1.0 ... > I'm getting some strange warnings appearing while I'm compiling a ...
    (microsoft.public.dotnet.framework.setup)
  • Re: gcc and my mind
    ... > I'm writing an aplication in C++. ... When i'm compiling my application ... > with gcc it give me 2 screens>of warning. ... Without seeing what the warnings are, ...
    (comp.programming.threads)