g++
Math.h not found even though `-lm` is set
What causes could there be, that gcc does not link to math.h even though I set the flag -lm? me@mycomputer开发者_StackOverflow中文版$ g++ template_gold.cpp -o template_gold -lm[详细]
2023-04-13 00:26 分类:问答g++ and boost linker error on Ubuntu oneiric
I am getting the following errors after an upgrade.I cannot figure what is wrong with 开发者_如何学JAVAit.It should work as far as I can see.[详细]
2023-04-12 19:20 分类:问答Why does this compile and is there any compiler switch that can make the compiler report it as an error or warning?
I found this example when I ran PCLint on the source code of the project I am working on. Here is the code snippet:[详细]
2023-04-12 15:07 分类:问答dlclose crashes when copying dynamic libraries
I have an interesting problem that seems to be unresolved by my research on the internet. I\'m trying to load libraries dynamically in my c++ project with the functions from dlfcn.h. The problem is th[详细]
2023-04-12 13:00 分类:问答Error when using `link` as a class name in C++
Consider a simple program in C++: #include <开发者_JAVA百科;iostream> class link {}; int main() {[详细]
2023-04-11 23:03 分类:问答gprof - File is missing call-graph data
I\'m just starting out with gprof and am trying to generate a call graph. I\'m using cmake for setting up my makefiles and I\'m setting CMAKE_EXE_LINKER_FLAGS = -gp to enable profil开发者_StackOverflo[详细]
2023-04-11 22:11 分类:问答Linking error: undefined reference to `vtable for XXX`
There is some linking error here. I looked for that online, yet still I couldn\'t find the problem. How can I fix it?[详细]
2023-04-11 21:35 分类:问答Can CMake use g++ to compile C files?
开发者_如何学运维I have worked on a project where I was using g++ to compile C code in files that end in .c. The reason is that I\'m told that g++ has better warning messages.[详细]
2023-04-11 18:12 分类:问答Simplest Possible Example to Show GPU Outperform CPU Using CUDA
I am looking for the most concise amount of code possible that can be coded both for a CPU (using g++) and a GPU (using nvcc) for which the GPU consistently outperforms the CPU. Any type of algorithm[详细]
2023-04-11 12:32 分类:问答Strange GCC Behaviour
Given the following C++ code: struct vertex_type { float x, y, z; //vertex_type() {} //vertex_type(float x, float y, float z) : x(x), y(y), z(z) {}[详细]
2023-04-11 06:20 分类:问答