Quantcast
Browsing all 22039 articles
Browse latest View live

Updated packages, now Mex files compiled with -O0 are "invalid mex file"?

I had a (previously working and compiling for months) set of MEX files. I updated my 3-month-old packages (which worked fine before with GCC/G++) with a pacman -Syu, and now here are my results:For...

View Article


Why does this #define STMT ( 0 || g() ) produce a compiler error...

during the compilation of a program using Petsc I stumbled upon a construct similar to the following. In Petsc they use it, as far as I understand, to wrap calls to MPI in order to monitor calls to...

View Article


ImageMagick: OSError: /lib/libc.so.6: version `GLIBC_2.XX' not found

I am working on an embedded linux system and try to get python-wand running...But i am not able to install anything on this system so i included them in the lib folder of my application (this folder...

View Article

Arm Gcc Weak Alias Redefinition

I wanted to create weak alias for several functions so that I can declare it in a header file but then define it later on in different files. For some reason I still get a redefinition error from gcc....

View Article

GCC appears to be confusing C *.d dependency files with D language source code

When I compile my code, gcc appears to be confusing the .d files in my gcc options with D programming language source, and complains that it can't find the "cc1d" compiler. In summary, I get the...

View Article


DPI-C and SystemVerilog External Compilation flow issue

ModelSim User's manual (v10.1c), in page 660, talks about the default autocompile flow (using vlog) and external compilation flow to get the the DPI-C to work in ModelSim. I'm able to get the...

View Article

build boost with -D_GLIBCXX_USE_CXX11_ABI=0

I need to build boost 1.62 on gcc 6.3 with option -D_GLIBCXX_USE_CXX11_ABI=0...Can I doing this so:./b2 --cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0" --prefix=/usr/local install -j5 or boost 1.62 can't be...

View Article

Loading a dynamic library at run-time yields inconsistent and unexpected...

I've been fighting with this problem for quite some time, and I've been unable to find a solution or even an explanation for it. So sorry if the question is long, but bear with me as I just want to...

View Article


Uniform initialization of non-copiable class data member cause to gcc error

Suppose we have this code:class A { public: A() = default; A(const A&) = delete; ~A() = default; }; class B { public: B() : a{} { } A a[1]; }; int main() { B b; } This code compiles on latest GCC...

View Article


Program not printing anything even till where it's supposed to [duplicate]

This question already has an answer here:Why does printf not flush after the call unless a newline is in the format string? 10 answersI was revisiting some basic loop programs in preparation for an...

View Article

Use vpath to find generated files

I'm trying to write a Makefile that compiles a *.c into an *.o and then move it to obj/. However when I try to link all the *.o files in main I get an error as if the generated files were not found. I...

View Article

Any way to specify the location of profile data

The default the profile file is from the executable is run and the file is called gmon.out. Is there any way to specify a new location?I'm using gcc 3.4.6 on i386/linux2.6

View Article

compiler warning: left shift of negative value

I think GCC is wrongfully producing a [-Wshift-negative-value] warning.I have a function that should produce a suffix mask of a certain length provided by its single input argument:#include...

View Article


cannot open output file a.out: Permission denied, on a simple compilation

I wrote some code in vim and whenever I try to run the code it shows this:coolmego@coolmego-PC:~/coolmego/cprograms$ gcc dfs8puzz.c /usr/bin/ld: cannot open output file a.out: Permission denied...

View Article

How can I print stack trace for caught exceptions in C++ & code injection in C++

I want to have stack trace not for my exceptions only but also for any descendants of std::exceptionAs I understand, stack trace is completely lost when exception is caught because of stack unwinding...

View Article


How to build glibc library with specific gcc version

On my system default gcc version is 4.4.7 , But i want to build glib library with gcc 6.3 version. For that i tried running ./configure from glib source as shown below:../configure...

View Article

Error jemalloc/jemalloc.h: No such file or directory when making Redis

I'm try to setup my Redis server, when execute make command, got error: "jemalloc/jemalloc.h: No such file or directory when making Redis", I have tried all steps I can find, such as make distclean or...

View Article


Default gcc/g++ compiler with OS vs. upgrading [closed]

We have Red Hat 6 and CentOS 7 OS as our build machines for C & C++ codebases. We currently use the default gcc compiler that comes with the OS. gcc versions are 4.8.5 and 4.9.x, respectively. You...

View Article

is there a way to communicate running elf in Spike(RISC-V emulator) with host...

I'm trying to make an communication between elf( compiled by riscv64-unknown-elf-gcc) in Spike and host machine. I want to ask..Is there any shared memory region between running binary in Spike and...

View Article

therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension

I'm trying to install the following gem versions on Maverickslibv8 (3.16.14.3)therubyracer (0.12.1)Obviously therubyracer gems depends on libv8.1) Installing libv8What is libv8? My bit of research...

View Article
Browsing all 22039 articles
Browse latest View live


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