g++
In gdb sizeof(Apple::record_) is zero. But It runs well
I encounterd a very strange g++ problem. The output of the flowing program is \"24 8 3\", All things seems ok. But when I use gdb, to print sizeof(Apple::record_), it turns out to be 0. My gcc versio[详细]
2023-04-07 22:49 分类:问答Problem in including an external library while compiling a C++ program
I\'m using Dev C++ on windows 7, and WinPcap (developer\'s pack). Dev c++ is not able to find pcap.h apparently, even though I include the /include/ directory in project options, on compilation it dis[详细]
2023-04-07 11:33 分类:问答How to combine a local editor with a remote compiler?
I am used to the local IDE interface which integrates the code editor and compiler. However, I want to test if the code compiles well with the remote compiler on Unix server. I am tired of copying my[详细]
2023-04-07 11:07 分类:问答Trying to link SDL in MinGW's G++ is failing miserably.. :/
Late last night I got bored.. so I began writing a small \'Noughts and Crosses\' type game in C++ and SDL. I wrote a fair majority of the basic part of the game, but when I compiled it to check for er[详细]
2023-04-07 08:41 分类:问答Different floating point result with optimization enabled - compiler bug?
The below code works on Visual Studio 2008 with and without optimization. But it only works on g++ without optimization (O0).[详细]
2023-04-06 23:06 分类:问答Is there a way of causing a compile error if trying to assign a negative number to an unsigned container?
Is there a way of guarding against the resulting binary from the code in t开发者_高级运维his question?Ideally by way of an error at compile time. Example code from the question:[详细]
2023-04-06 16:18 分类:问答Program always producing same value?
the point of my program is to write the numbers 1 - 1,000,000 to a text file, generate a random number between 1 and 1,000,000, search for that line in the text file, take the value, and square it (th[详细]
2023-04-06 12:25 分类:问答Can I use variadic templates (but none of the other c++0x features) in g++?
The thinking is that since variadic templates are a compile time feature, there will be little ABI impact or runtime behaviour change.Is this possible?[详细]
2023-04-06 08:36 分类:问答How to pass -std=c99 to g++?
My cpp file includes C header that has a enumerator with comma at the end. As a result g++ produces warning:[详细]
2023-04-06 07:32 分类:问答Creating and use a static library with g++
There was a week I\'m learning and reading how to use my own stat开发者_Go百科ic library in C++ and it\'s driving me crazy. I\'m using Ubuntu and I have a class in /home/myFiles/lib I want to build my[详细]
2023-04-06 06:28 分类:问答