Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Browsing all 22045 articles
Browse latest View live

get "libcephfs.so:undefined reference to 'blablabla'" error during compiler....

I have a cephfs and i'm writing a client code in c language using libcephfs.h library for it. Note: installed libcephfs-dev and libcephfs2, but did not work on any version(12.2.12 or 12.2.4) I am using...

View Article


The linker can't find a library even when i have specified it's location with -L

This is my makefile# Output OUTDIR = out/ #Source files SRC = src/main #Objects OBJS = $(addprefix $(OUTDIR), $(addsuffix .o, $(SRC))) #Dependencies DEPS = $(addprefix $(OUTDIR), $(addsuffix .d,...

View Article


How can a literal 0 and 0 as a variable yield different behavior with the...

There's only 1 circumstance where __builtin_clz gives the wrong answer. I'm curious what's causing that behavior. When I use the literal value 0 I always get 32 as expected. But 0 as a variable yields...

View Article

How to force Conda to use gcc found at /usr/bin/gcc?

On Ubuntu 18.04 I run which gcc and the output is as expected.ubuntu@USER1:~$ which gcc /usr/bin/gcc However when I activate my conda environment and run which gcc I get:(tensorflow_p36)...

View Article

mingw32-gcc compiling Cython output: unknown multiarch location for...

I am trying to make executables of my python application for Linux and Windows, but the Windows build process is failing.Here is my Makefile:all: transpile compile-linux compile-w64 transpile: main.py...

View Article


Image may be NSFW.
Clik here to view.

Why do I get the same address every time I build + disassemble a function...

Every time when I disassemble a function, why do I always get the same instruction address and constants' address?For example, after executing the following commands,gcc -o hello hello.c -ggdb gdb...

View Article

ld: can't find -lGL error during installation

I'm trying to install mujoco-py and get this after compilation: /home/ubuntu/anaconda3/compiler_compat/ld: cannot find -lGL collect2: error: ld returned 1 exit status error: command 'gcc' failed with...

View Article

identifier "__shfl_down" is undefined for cuda-7.5

While compiling a program on cuda 7.5 with gcc 4.8.4 on ubuntu 14.04 (pretty old config), I get this errorerror: identifier "__shfl_down" is undefined detected during instantiation of "T...

View Article


OpenMP reduction issue with Cython

I am facing an unexpected behavior of Cython (v. 0.29.13) when compiling OpenMP parallel code that is expect to perform a reduction:import cython from cython.parallel import prange, parallel cpdef...

View Article


OpenMP tasks don't see changes of shared variables

I start two OpenMP tasks that simply print the value of a shared variable initially set to 1. I change the variable between starting the two tasks to 2.I'd expect both tasks to see the changed value of...

View Article

How to downgrade requirement to glibcxx 3.4.20 of my dynamic library?

I used to build my dynamic library for Centos7 in Docker and everything worked until something happened (or I changed something) and now the .so requires libstdc++ with glibcxx 3.4.20. How to downgrade...

View Article

How does "lock cmpxchg" work in assembly?

I came across this old (GCC prior to 4.8.3 -- bug 60272) bug report https://gcc.gnu.org/ml/gcc-bugs/2014-02/msg01951.html . This is fixed now. But I have a question regarding this. I compiled the...

View Article

CUDA incompatible with my gcc version

I have troubles compiling some of the examples shipped with CUDA SDK. I have installed the developers driver (version 270.41.19) and the CUDA toolkit, then finally the SDK (both the 4.0.17...

View Article


Why does GCC aggregate initialization of an array fill the whole thing with...

Why does gcc fill the whole array with zeros instead of only the remaining 96 integers? The non-zero initializers are all at the start of the array.void *sink; void bar() { int a[100]{1,2,3,4}; sink =...

View Article

compiling gcc with -O3 technically increases my cache miss rate

I've been profiling a bit with cachegrind and noticed something. When i compile with -O3 i had fewer data fetches but the same amount of cache misses resulting in a higher miss rate. This is great but...

View Article


How to link the cs50 C library in gcc on windows

I'm new to С programming and have been trying to compile my code using MinGW/GCC, but I try to include cs50 (cs50.c, cs50.h) library, and the compiler can't find it. Help me compile who knows what's...

View Article

GCC is generating binaries filled with zeroes

I'm trying to figure out why the binaries generated by GCC are so large.Consider this empty program:int main() { return 0; } Now I build it with GCC 9.2.1 20190827 (Red Hat 9.2.1-1) and glibc 2.29...

View Article


Strange message gcc while compilation of short c files

I just compiled a short c program with gcc and this is the answer it gave me :t_out_buffer.c:19:8: error: conflicting types for ‘t_out_buffer_init’ void t_out_buffer_init(t_out_buffer *buf, int fd)...

View Article

How to build or get a original latest version of GCC for Windows?

I want a latest version of GCC for Windows. Now the latest version is 9.2 but for Windows via MinGW it is just 8.1... I have tried to build from source for Windows 10 include WSL, but have not found...

View Article

Using flock() on Solaris 5.10

I'm writing a C utility for Solaris 5.10 that uses flock() for file synchronization. My goal is to interoperate with an existing legacy system that also invokes flock() under the hood. According to man...

View Article
Browsing all 22045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>