Description:
GNU C++ compiler (G++) user queries and answers.
|
|
|
Unable to find slab.h and mm.h
|
| |
I'm need to include slab.h and mm.h in a c++ program. i.e. ...I'm unable to find the header files anywhere in the file system. I expected to find them in /usr/include/linux. slab.h and mm.h also have include statements for files that re not on the file system. Is the a package or library I can install to correct this?... more »
|
|
istringstream constructor performance
|
| |
I have written some C style routines that convert strings to doubles, ints, etc. using the C++ string stream objects. Each of the methods use a locally constructed istringstream object which uses the >> operator to make the conversions. A typical method looks like: double ToDouble( const string & str)... more »
|
|
Confused about friend operators, namespaces, and private members...
|
| |
I am using gcc 3.4.6 under CentOS 4.8 (RHEL 4.8): Reading specs from /usr/lib/gcc/i386-redhat-linux /3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit... more »
|
|
recursive wildcard target in makefile
|
| |
Hi all! I have .cpp sources in c/ directory of project and want to generate .dep files for every .cpp in temp/ directory. For example: c/tester.cpp produced temp/tester.dep c/lib1/file.cpp produced temp/lib1/file.dep and so on. makefile in c/ directory I can collect names to generate: CPP_SOURCES = $(wildcard *.cpp */*.cpp */*/*.cpp */*/*/*.cpp)... more »
|
|
exceptions across DSO boundary - unrecognised when caught
|
| |
Hi all Would much appreciate a little help with a problem. In short, my executable is linked (implicitly) to a shared library X.so. X.so uses dlopen(path.c_str(), RTLD_NOW | RTLD_DEEPBIND | RTLD_GLOBAL) to open Y.so, then dlsym() to obtain an exported C function from Y. The exported C function returns an object of class P, and calling a... more »
|
|
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 »
|
|
|