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

Strange performance difference of matrix row summation with RowMajor and...

I decided to check how data arrangement in matrix influences performance of simple operations.I wrote simple row summation algorithm using Eigen::Matrix as data storage.I though that RowMajor storage...

View Article


Why is vectorization so much more effective with floats than with doubles?

I noticed that when vectorizing a loop in a C program, the speedup achieved is much greater when using operands of the type float compared to double operands.Example:for (int i = 0; i < N; i++) {...

View Article


How to compile libav for AFLGo

I need to compile libav library with AFLGO.cd ~export AFLGO=$PWD/aflgocd path/to/libav/folderexport SUBJECT=$PWD; export TMP_DIR=$PWD/obj-aflgo/tempexport CC=$AFLGO/afl-clang-fastexport...

View Article

GCC instantiating a method that should be SFINAEd away? [duplicate]

I have a template class called Basis, instantiated like this:Basis<std::function<sla::col<3>(const sla::col<2>&)>> basis;and defined like this:template<typename...

View Article

How do you call C functions from Assembly and how do you link it Statically?

I am playing around and trying to understand the low-level operation of computers and programs. To that end, I am experimenting with linking Assembly and C.I have 2 program files:Some C code here in...

View Article


Not able to execute the .exe file generated from GCC compiler

I am working on creating a system in C language and I have installed GCC compiler via MinGW Installer. After this, I created a basic Hello World program to check if the compiler is working properly. I...

View Article

A simple explanation of what is MinGW

I'm an avid Python user and it seems that I require MinGW to be installed on my Windows machine to compile some libraries. I'm a little confused about MinGW and GCC. Here's my question (from a real...

View Article

gcc versions later are not supported

I just set up a Ubuntu.I'm trying to turn the yolo of darknet. and I've got this error./usr/local/cuda/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than...

View Article


Image may be NSFW.
Clik here to view.

How do I fix the segmentation fault error in C

I am new to C and I can't figure it out. The code compiles and lets me run it one time but when I enter it gives me segmentation fault. I ran gdb and backtraced it to find that the segmentation fault...

View Article


GCC build fails on OSX 10.14.1 with "malformed object (unknown load command 1)"

I am trying to build a library on my mac (OSX Version 10.14.1, Xcode Version 10.1) and it fails giving following error:Building target: application.aar -r "application.a" api.oar: creating archive...

View Article

Image may be NSFW.
Clik here to view.

How can i compile ps command from a source code?

I got a file ps.c from the site: git.suckless.org/ubase and i want to compile it with command gcc ps.c but im getting errors like this:is it even possible to compile this, or is there any other way to...

View Article

Fortran program cannot compile

I get this error when I try to make my fortran program, how can I solve this?mpifort verison: GNU Fortran (GCC) 4.8.5gfortran version: GNU Fortran (GCC) 8.2.0mpirun version : 3.2.1 gfortran...

View Article

gcc warning "implicit declaration of function ‘strnlen’" when dialect c99 or...

EDIT Question is: how do I remove the warning /EDITcompiling (special cut-down test with just one #include)#include <string.h>void DeleteMe(){ const char* pC = "ABC"; int nLen = strnlen(pC, 255);...

View Article


ModuleNotFoundError: No module named 'second.core.non_max_suppression.nms

I am using Anaconda base environment for second.pytorch of ubuntu 16.04after executing the following:nvidia-docker run -it --rm -v /media/yy/960evo/datasets/:/root/data -v...

View Article

segmentation fault when using a non NULL pointer

there is a weird problem as title when using dpdk, When I use rte_pktmbuf_alloc(struct rte_mempool *) and already verify the return value of rte_pktmbuf_pool_create() is not NULL, the process receive...

View Article


C++ two libraries depend on same lib but different versions?

If i have libs A, B and C in C++ using GCC compiler. Lib A and B both depend on C but on different versions of it. Can i then use A and B together in another program? or will the different versions...

View Article

error: could not convert ‘0’ from ‘int’ to ‘std::__c_locale {aka __locale_t}

I get the following error while building a tool on ubuntu 20.04.In file included from /usr/local/include/c++/4.8.5/bits/ios_base.h:41:0, from /usr/local/include/c++/4.8.5/ios:42, from...

View Article


Is there a way to print all string in capital letters without using strupr...

I want to print the data stored in a file which is randomly cased in all caps and strupr() seems to be something that's been listed by someone previously but its not a standard function and may not be...

View Article

GCC (trunk) -fanalyzer [CWE-401] false positive?

I recently learned about GCC's new -fanalyzer feature, and decided to try it out on some of our codebase. The results were quite interesting, but there's one function where i suspect a false...

View Article

Cygwin, choose between different GCC versions

I already had Cygwin installed, but I just ran the installer to get a later version of GCC. Previously I was running GCC 4.9, I am now running 9.3. However, my code now runs approximately 20% slower.To...

View Article
Browsing all 22042 articles
Browse latest View live


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