Description:
GNU C++ compiler (G++) user queries and answers.
|
|
|
Profiling under Linux
|
| |
I have a C++ program that is slower than I would like. I would like to use a profiler that would tell me in what functions is it spending the most actual time. gprof seems like an interesting tool, but I would like to know if there are other alternatives. The issue is that I have a particular program that is slower under... more »
|
|
auto_ptr question ??
|
| |
I have a program that declares an auto-pointer in the header file, and then instantiate the pointer in the code file. i.e. tester.hpp ~~~~~~~ // My Class ...//STD ... class Tester { public: Tester(); ~Tester(); private: PulldownMenu* pdm; }; tester.cpp... more »
|
|
using -O3 options with g++
|
| |
hi all i am new to gcc compiler. for my one of application on 64 bit linux machine i have a doubt whether i should use -O3 or -O2 for better performance. as i read in documentation of gcc, -O3 is told to be higher in size and higher in performance compare to -O2. but -O3 defaults options enable functions with 600 lines to be inlined... more »
|
|
The GIMP - CPP and G++
|
| |
Sorry folks, I know this is not the right place to ask this question, but I would like to rely on your experience and exposure to different programming techniques to resolve this issue. I was looking at The GIMP ([link]) specially the MS-Windows screen-shots, I like the way The GIMP uses a tall side-... more »
|
|
C++ Classes with Variable Length Array Members
|
| |
GCC's C Extensions gives us zero and variable length arrays. Is it possible to get variable length arrays as members ("by-value") in C++ classes aswell, something like: class string255 { private: char size; char val[size]; ...I guess it all boils downto how C++ allocates a class. Can we give gcc hints about this somehow?... more »
|
|
boost::enable_if in 4.4.1 vs 4.1.2
|
| |
Hello Everyone- The following code compiles with g++ 4.1.2 but does not compile with 4.4.1; I get an error message saying the prototype does not match any declared in the class. This happens both with Boost 1.40.0 and 1.33.1, on Debian (x86 64-bit). Does anyone know what's up with this, is there some workaround? Thanks very much.... more »
|
|
Installing Daydream BBS
|
| |
Hello.. I am installing Daydream BBS, but have a glitch. I don't know what libraries are needed for install. I have the g++ installed, but it asks for aclocal. What do I do? -_Davidsmc
|
|
Fwd: hi
|
| |
Dear All, My sincerest apologies for the below mail. I have just discovered (much to my horror), that a bot program did hack my account successfully and exploited the contact list. It has sent the below mail. Patiently ignore any further communication which looks less meaningful (atleast relative to what... more »
|
|
|