g++
Misunderstanding concerning g++, dynamic and static linking on linux vs windows
I\'m a little confused by what I\'ve learned today. I hope somebody can help me out. I understand the concept of dynamic and static linking, but the problem is as follows. On windows, or at least the[详细]
2023-03-22 11:20 分类:问答how to detect when compiler emits an error
To compile a C++ project, I want to write a perl script to compile my program and see if the compilation went wrong or not. If the compiler gives any compilation erro开发者_C百科r, I\'ll need to perfo[详细]
2023-03-22 04:57 分类:问答gcc on Mac OS X: how to link libraries installed with MacPorts?
I have installed gcc 4.6 using macports. The p开发者_Python百科refix is /opt/local, and I get the expected include path:[详细]
2023-03-21 07:44 分类:问答c++ compiler error "was not declared in this scope"
I\'m getting a bizarre compiler error when trying to compile a c++ UDP client program. g++ -o client Udp.cpp ClientMain.c -I. -lpthread[详细]
2023-03-21 03:33 分类:问答Pthread condition variable unpredictable outcome
First of all sorry for posting a long question, but please do keep patience :). As a part of my application i am using threads to read different parts of a memory mapped file, as in first half of t[详细]
2023-03-20 22:42 分类:问答Faster than memcmp
I have a UUID class that has an inbuilt 16 byte buffer for the UUID. The >, <, ==, != overloaded operators just call memcmp() over the 16 byte value.[详细]
2023-03-20 16:56 分类:问答Should I use global variables?
I have been reading about global variables and how bad they are but I am stuck in one place due to that. I am going to be very specific about if I should use global variables in this scenario.[详细]
2023-03-20 14:20 分类:问答Undefined reference linking error when using &MyClass::MyFunction
this just has me stumped, so I thought I\'d query here: I have a class as follows: class MyClass { public:[详细]
2023-03-20 08:02 分类:问答install g++ and compile issues
Can I use gcc to compile C++ program? Is there any difference with using g++ instead? On an exisitng system开发者_StackOverflow, I type \"man g++\", the system returns \"no manual entry for g++\". Bu[详细]
2023-03-20 07:18 分类:问答Compilers give different answers for Project Euler #22
I\'m doing Project Euler #22: Using names.txt (right click and \'Save Link/Target As...\'), a 46K text[详细]
2023-03-20 06:13 分类:问答