bst365体育投注网址大全

How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [gcc]

bst365体育投注网址大全 GCC is the GNU Compiler Collection. It's the de facto standard compiler for C, C++, Go, Fortran, and Ada on Linux and supports many other languages and platforms as well. Apart from the compiler GCC has a toolchain (libc, libstdc++, objdump, nm etc.) that are widely used on several platforms and systems.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

ARM Cortex-M7 GCC Linker error Relocation truncated to fit R_ARM_PREL31 when trying to place some files in another memory section

Good day everyone. I have a large project for STM32H747XI and there is many of code files that could not be placed into main FLASH memory region so I'm trying to place it on external QSPI flash. So I ...
0
votes
0answers
34 views

gcc turning on -O3 causes bug on 128 bit integer [duplicate]

Two versions of a function that multiplies a unsigned 256 bit integer by constant 977. (for cryptography application) Note __int128_t type is used in the 2nd function. #include <stdint.h> #...
1
vote
0answers
23 views

Specialisation of class with template template parameter working in clang but not in gcc

I am trying to make my code, already working on clang, compatible with gcc. I have the following main class: template<typename T, typename...Ts> class OperatorTypeHelper { public: using type=T;...
1
vote
0answers
24 views

Include path not working for Bluez libraries

Im trying to develop application in C using Bluez library on linux. I cant figure out how to properly pass all include paths to compiler so that all libraries I need will be visible. No matter what I ...
0
votes
1answer
39 views

Why does GCC handle a const reinterpret_cast different when type alias is used? [duplicate]

In the following code: #include <cstddef> class s; void foo(void* buffer) { using s_ptr = s *; const auto b_s = reinterpret_cast<const s_ptr>(buffer); const auto b_s2 = ...
0
votes
0answers
12 views

how to fix include <openssl/evp.h> no such file or directory exists in windows OS

I have been battling with this problem all day. i have read a lot of articles on this issue but no one seems to be talking about windows OS. I am working on an encryption algorithm written in c that ...
0
votes
0answers
12 views

Capture output of GCC compiler in VB.Net

I've vb.net form with several textboxes and in the code I've defined a process that starts a GCC (MinGW) compiler. The compiler then compiles a C++ file as shown in the code below. Dim proc As ...
2
votes
0answers
12 views

Remove a section from ELF during linking stage

How can I remove a section from ELF during linking stage? Is there any linker option or flag for this? I'm mostly interested on how it can be done with LLVM, but any information about GCC will be ...
0
votes
1answer
24 views

“sprintf” error in esp-idf. gcc version 9.1.0 in msys2

I was using msys2 earlier with gcc 6.4.0 and was working for my project. I upgraded the toolchain and gcc to 9.1.0. Now I am getting this error: small part of code: memset(payload, 0, 8192); ...
0
votes
0answers
38 views

Compiler optimizes out the coroutine value

I have implemented two coroutines that uses the Resumable class: #include <coroutine> #include <future> #include <iostream> class Resumable { public: class promise_type { ...
0
votes
0answers
18 views

Issue when debugging with gdb after compiling with the MSYS2 MinGW-w64 gcc (crtexe.c, No such file or directory)

I'm having this "issue" with gcc and gdb, which by itself isn't a real problem but it still annoys me and I want to understand why it's happening and how to solve it. First I want to ...
0
votes
0answers
15 views

VS Code task template for compiling/linking codes of multiple units

I have a multi-unit project that involves 1) compiling multiple .c, .cpp and .cu (CUDA) source code units and 2) linking those into a single executable. To show the overall building tasks, the cmake ...
0
votes
1answer
16 views

Why does gcovr generate empty coverage statistics?

I'm confused about how to use gcov. I've got a cmake project that has two test executables which use googletest. I've added the required flags to my cmake script: set(CMAKE_CXX_FLAGS "${...
1
vote
1answer
42 views

Building against ancient C Object

I have a project I'm working on that has code from 1988 and is on Solaris Sparc machines. I'm not a C programmer, but there is a header file and object file for the old code but no sourcecode. I can ...
1
vote
1answer
57 views

What is __libc_start_main and _start?

From the past few days I have been trying to understand what happens behind the curtain when we execute a C program. However even after reading numerous posts I cannot find a detailed and accurate ...

15 30 50 per page
1
2 3 4 5
2307