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

Set GCC default attribute for all functions (get all function symbol to be...

I am currently writing a C project that includes a separate test build. The tests are different C processes that uses the source code to test every defined function in my code (TDD).I want monkey...

View Article


undefined reference to `WinMain@16' error

Getting error:c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'collect2.exe: error: ld returned 1 exit statuswhile compiling...

View Article


R installation of package fails /usr/bin/ld: cannot fild -ljpeg

Installing the R package jpeg fails on a CentOS server for which I have no sudo access.I'm using R 3.6.3. I've compiled libjpeg-turbo 1.5.2 and added the appropriate paths to PATH and LD_LIBRARY_PATH...

View Article

How compile openacc block on AMD Radeon GPU?

I want to compile a code that contain a parallelizable loop in it with OpenACC. My GPU is AMD Radeon and compiler is Gcc. Code is such as below: Program Test use openacc Implicit None integer(8)::I...

View Article

How to configure CMakeLists to use Windows command line compiler instead of...

I would like to convert my project from a visual studio solution to build with cmake and compile with makefileThis is a 2-part questionRight now the CMakeLists.txt is:cmake_minimum_required(VERSION...

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

Undefined reference to _unwind_Resume and _gxx_personality_v0 [duplicate]

When attempting to build a Code::Blocks project, I am running into the errors in the title. The build log looks a little something like this:...

View Article

CrossCompilie python code for raspberry pi

I found issues on installing a cross compiler on my Ubuntu19.04 64 bit machine. I would like to cross compile python code into executable for my raspberry pi 3 model b+ running Debian Stretch.I...

View Article


Check glibc version for a particular gcc compiler

I have two gcc compilers installed on my system, one is gcc 4.1.2 (default) and the other is gcc 4.4.4. How can I check the libc version used by gcc 4.4.4, because /lib/libc.so.6 shows the glibc used...

View Article


How to figure out which asm my server is using

What is the most straightforward way to determine which asm a server is using? For example, I have the following C program:int main(void) { int i = 4; return i;}And compiled to assembly via $ gcc -S...

View Article

Update gcc version failed in mac

I want to update my gcc version from 4.2.1 to 4.9. I use brew install gcc49 and installed successfully. I also linked it but it still didn't work. How to link it? Would you help take a look?build $...

View Article

how to build gcc with support to -mcmodel=large -fpic on arm64

When I tried to compile the example code posted athttps://eli.thegreenplace.net/2012/01/03/understanding-the-x64-code-models/#example-c-source on an arm64 device(Raspberrypi) with raspberrypi:~$ gcc -g...

View Article

gcc -u symbol compiler option

When do we use the gcc -u compiler option?Can you please provide an example too?https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.htmlSays the following:Pretend the symbol symbol is undefined, to force...

View Article


how to build gcc to support -mcmodel=large -fpic on arm64

When I tried to compile the example code posted athttps://eli.thegreenplace.net/2012/01/03/understanding-the-x64-code-models/#example-c-source on an arm64 device(Raspberrypi) with raspberrypi:~$ gcc -g...

View Article

ioctl call flow in linux kernel

I am trying to understand the call flow of the ioctl call in linux kernel and I have a question - when we call ioctl from userspace, which function or module in linux kernel is responsible to convert...

View Article


How to compile Jonesforth on OSX Mojave?

Attempting to compile Jonesforth on OSX throws:jonesforth.S:1154:10: fatal error: 'asm/unistd.h' file not found".So I tried this advice for Linux, but still complains.This Power PC port throws other...

View Article

CrossWork for ARM and AT91Sam9263 - Optimization problem

I'm using CrossStudio for ARM v4.6 IDE for programming AT91SAM9263 microprocessor. When I use externally executable project with .elf file compiled by arm-elf-gcc on Linux it works fine.The same code...

View Article


ld error duplicate symbols while trying to build Pymesh on MacOS

I've been trying to build Pymesh on MacOS 10.15 with GCC 9.3.0 and I get the following error in the make stepScanning dependencies of target lib_IGL[ 48%] Building CXX object...

View Article

Ubuntu x86-64: To Link buffer to memory section created in predefined address

I want to create a 4MB buffer allocated in a predefined section of linker script. Using ld --verbose I got the default linker script used by gcc. I want to add a section called .exchangeBuffer...

View Article

error: use of deleted function bool regex_match with gcc 5.2.0

The code compiled with GCC 4.9.2 without even any warning, but shows the following error in GCC 5.2.0:error: use of deleted function ‘bool std::regex_match(const std::__cxx11::basic_string<_Ch_type,...

View Article
Browsing all 21994 articles
Browse latest View live


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