c++ Programming Glossary: gcc
Detecting endianness programmatically in a C++ program http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program clearer and according to C99 is guaranteed to be correct. gcc prefers this compared to the direct pointer cast. This is also..
Is gcc4.7 buggy about regular expressions? [duplicate] http://stackoverflow.com/questions/12530406/is-gcc4-7-buggy-about-regular-expressions gcc4.7 buggy about regular expressions duplicate Possible Duplicate.. tr matches mt 1 st mt tr matches tr 0 when compiled with gcc MacPorts gcc47 4.7.1_2 4.7.1 either with g .cc o test std c.. mt 1 st mt tr matches tr 0 when compiled with gcc MacPorts gcc47 4.7.1_2 4.7.1 either with g .cc o test std c 11 g .cc o test..
What is an undefined reference/unresolved external symbol error and how do I fix it? http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix LNK1120 for MSVS and undefined reference to symbolName for gcc . The code struct X virtual void foo struct Y X void foo struct.. x 0 foo Y y B b would generate the following errors with gcc home AbiSfw ccvvuHoX.o In function `main' prog.cpp .text 0x10..
Visual Studio support for new C / C++ standards? http://stackoverflow.com/questions/146381/visual-studio-support-for-new-c-c-standards to lock users in it makes it very hard to port modern gcc based code into MSVC which at least I find extremely painful... can handle C99 code and even has the same flags as gcc making it much easier to port code between platforms. Also the.. sensible approach is honestly to move over to Intel CC or gcc and use Eclipse for your programming environment. Portability..
Reading from text file until EOF repeats last line http://stackoverflow.com/questions/21647/reading-from-text-file-until-eof-repeats-last-line The above behaviour is seen on Windows Visual C cygwin gcc and Linux gcc . c iostream fstream share improve this question.. behaviour is seen on Windows Visual C cygwin gcc and Linux gcc . c iostream fstream share improve this question Just follow..
Is it possible to write a C++ template to check for a function's existence? http://stackoverflow.com/questions/257288/is-it-possible-to-write-a-c-template-to-check-for-a-functions-existence value std endl return 0 I've just tested it with Linux and gcc 4.1 4.3. I don't know if it's portable to other platforms running..
Finding C++ static initialization order problems http://stackoverflow.com/questions/335369/finding-c-static-initialization-order-problems be guarded with a critical section. On the bright side gcc has an explicit patch as part of the compiler that guarantees..
Using arrays or std::vectors in C++, what's the performance gap? http://stackoverflow.com/questions/381621/using-arrays-or-stdvectors-in-c-whats-the-performance-gap and arrays pointers. Assembly code was generated by gcc 4.1.0 invoked with g O3 S on a x86_64 suse linux machine. #include..
Linker order - GCC http://stackoverflow.com/questions/45135/linker-order-gcc in which libraries are linked sometimes cause errors c gcc linker share improve this question There is a requirement.. library B in first so that the symbols will be found when gcc examines library A. Unless you know the locations of symbols..
How to generate a stacktrace when my gcc C++ app crashes http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes to generate a stacktrace when my gcc C app crashes When my c app crashes I would like to generate.. Windows and Macintosh all versions are compiled using gcc . I would like my program to be able to generate a stack trace.. don't know how to generate the trace string. Any ideas c gcc crash stack trace assert share improve this question For..
Is there a difference in C++ between copy initialization and direct initialization? http://stackoverflow.com/questions/1051379/is-there-a-difference-in-c-between-copy-initialization-and-direct-initializati A const then The Comeau compiler rejects it properly but GCC accepts it in non pedantic mode. Switching to pedantic makes..
Why is processing a sorted array faster than an unsorted array? http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array in critical loops. such as in this example Update GCC 4.6.1 with O3 or ftree vectorize on x64 is able to generate.. mispredictions it is also twice as fast as whatever VC and GCC can generate In other words ICC took advantage of the test loop..
Is gcc4.7 buggy about regular expressions? [duplicate] http://stackoverflow.com/questions/12530406/is-gcc4-7-buggy-about-regular-expressions this question Newsflash regex is now implemented on the GCC subversion trunk it will be in GCC 4.9 Huge thanks to Tim Shen.. now implemented on the GCC subversion trunk it will be in GCC 4.9 Huge thanks to Tim Shen for finishing the implementation... it is That prototype regex code was added when all of GCC's C 0x support was highly experimental tracking early C 0x drafts..
C++ Which is faster: Stack allocation or Heap allocation http://stackoverflow.com/questions/161053/c-which-is-faster-stack-allocation-or-heap-allocation this combination would be most helpful but in general for GCC and MSVC what is the case Is heap allocation not as high performing..
Uses of C comma operator http://stackoverflow.com/questions/1613230/uses-of-c-comma-operator . This situation is changed in a rather interesting way in GCC compiler which supports so called statement expressions as an..
What do the following phrases mean in C++: zero-, default- and value-initialization? http://stackoverflow.com/questions/1613341/what-do-the-following-phrases-mean-in-c-zero-default-and-value-initializat shows that MSVC and Digital Mars follow C 98 rules while GCC 3.4.5 and Comeau follow the C 03 rules #include stdio.h #include..
What is the name of this operator: “-->”? http://stackoverflow.com/questions/1642028/what-is-the-name-of-this-operator to 0 printf d x I'd assume this is C since it works in GCC as well. Where is this defined in the standard and where has..
When should I write the keyword 'inline' for a function/method? http://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method you ask for it or not. As an aside to prevent inlining in GCC use __attribute__ noinline and in visual studio use __declspec..
std::wstring VS std::string http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring all popular C compilers Mostly with the exception of GCC based compilers that are ported to Windows It works on my g..
Linker order - GCC http://stackoverflow.com/questions/45135/linker-order-gcc order GCC Why does the order in which libraries are linked sometimes..
What's this STL vs. “C++ Standard Library” fight all about? [closed] http://stackoverflow.com/questions/5205491/whats-this-stl-vs-c-standard-library-fight-all-about in the same way that your Microsoft Visual Studio or GCC ships an implementation of the C Standard Library. But the Standard..
How do I expand a tuple into variadic template function's arguments? http://stackoverflow.com/questions/687490/how-do-i-expand-a-tuple-into-variadic-template-functions-arguments function in different some now obsolete documents. The GNU GCC 4.4 implementation seems to have a call function in the bind..
Eclipse CDT C++11/C++0x support http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support CDT C 11 C 0x support Eclipse 3.7.1 CDT 1.4.1 GCC 4.6.2 This is an example of a piece of C 11 code auto text std.. and go to Properties C C Build Settings Tool Settings GCC C Compiler Miscellaneous Other Flags. Put std c 0x at the end.. Other Flags. Put std c 0x at the end . ... instead of GCC C Compiler I have also Cygwin compiler C C General Paths and..
Where are static variables stored (in C/C++)? http://stackoverflow.com/questions/93039/where-are-static-variables-stored-in-c-c variables. For discussion purposes lets assume we use the GCC toolchain. c c compiler share improve this question Where..
#includes within a namespace, to “embed” prewritten stuff in namespace http://stackoverflow.com/questions/14270435/includes-within-a-namespace-to-embed-prewritten-stuff-in-namespace doesn't do it. At least not all the time not in gcc 4.7.2. Gcc's behavior in this has changed over time. Gcc 4.1.2 behaved.. gcc 4.7.2. Gcc's behavior in this has changed over time. Gcc 4.1.2 behaved differently. E.g. Type var namespace Foo void..
Undefined symbol ?œtoupper??in MacPorts GCC 4.7 OS-X Mavericks 10.9 C11 http://stackoverflow.com/questions/19621831/undefined-symbol-toupper-in-macports-gcc-4-7-os-x-mavericks-10-9-c11 the setup Can someone help to understand what changed in Gcc macports os 10.9 I used to have a compiling script of some third..
If the address of a function can not be resolved during deduction, is it SFINAE or a compiler error? http://stackoverflow.com/questions/2892087/if-the-address-of-a-function-can-not-be-resolved-during-deduction-is-it-sfinae a compiler error because 'auto T X foo' is invalid s.f 3 Gcc 4.5 states that this is a compiler error and clang spits out..
Replacing ld with gold - any experience? http://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience package if you remove that package you get your old ld . Gcc will automatically use gold then. Some experiences gold doesn't..
Standard container re-allocation multipliers across popular toolchains http://stackoverflow.com/questions/5404489/standard-container-re-allocation-multipliers-across-popular-toolchains STL shipped with Visual Studio uses a 1.5 multiplier Gcc uses 2. I cannot really tell for the rest but I think those..
Why is there no gcc/g++ warning for unused temporaries? http://stackoverflow.com/questions/6518337/why-is-there-no-gcc-g-warning-for-unused-temporaries apps mediawiki cppcheck index.php title Main_Page Gcc issues warnings on unused variables. The temporary here is an..
Why is MinGW very slow? http://stackoverflow.com/questions/929495/why-is-mingw-very-slow is MinGW very slow I'm using Code Blocks IDE with Gcc minGW on Windows and I'm trying to build a wxWidgets application..
In GCC, can precompiled headers be included from other headers? http://stackoverflow.com/questions/9580058/in-gcc-can-precompiled-headers-be-included-from-other-headers state just after parsing the whole header PCH uses the Gcc Garbage Collector machinery with GTY annotations inside the..
|