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

How to call cuda libraries from OpenACC C++ code by g++?

I want to use cuda libraries (cublas, cusparse cusolver) in OpenACC code by g++-8.Can g++-8 use cuda libraries like PGI?I wrote following code, that needs cublas or cublas_v2.//...

View Article


Eclipse -Error while launching command: gdb --version

I am using Eclipse on a Windows system (64-bit) for C++ code and the compiler is GCC/G++. I have created a .exe and in the end it is showing as amd64/le, and I am not able to debug. When I am trying to...

View Article


Error: "expected ‘)’ before string constant" [closed]

I'm trying to run a C program in Ubuntu (using the gcc compiler), and for some reason it's not allowing me to use the strcpy function. On the second line of code below: char test[10]; strcpy(test,...

View Article

How do I manipulate PE characteristics with GCC

Like MSVC, I want to set PE characteristics like High Entropy VA, Dynamic Base, etc. with gcc. How can I do it with gcc? Currently, gcc only sets the characteristics Executable.

View Article

How to solve - genhtml error : File or path name too long

I use MingW (Ver for windows 10), Cunit (Ver 2.1.2), LCOV(1.14) combination for cunit testing and code coverage. I see that html report is not generated on some PCs but successfully generated on my PC....

View Article


GCC Errors More Readable For Method Signature

When GCC raises an error, it shows the method definition with details.For example, instead of showing:std::string it shows:std::__cxx11::basic_string<char, std::char_traits<char>,...

View Article

__libc_init_array using stack pointer for writes before stack pointer is set

The Problem: When I compile a C program for a bare metal RISC-V environment with GCC, the function __libc_init_array is using the stack pointer for writes to the memory before the stack pointer is set....

View Article

Variadic macro expansion's going wrong

Consider the following code#define COMB(F, ...) F(__VA_ARGS__) #define ADD(X, Y) (X + Y) int foo() { return COMB(ADD, 1, 2); } I have done some experiments on Godbolt. Microsoft VS v19.22 (with /E...

View Article


Add gcc error text parsing to Kate?

It seems an obvious improvement, in Kate, to jump directly to the error location given in a gcc error message. It would great if it can be made to work directly in Kate's terminal, but I would settle...

View Article


/usr/bin/ld: cannot find -lgcc_s

I have a problem I need help with. I am currently trying to write a program to read out the address of a section I created.add.c:#include <stdio.h> extern unsigned char arduino_handler_size[];...

View Article

CHAR_WIDTH undeclared

I get the error ‘CHAR_WIDTH’ undeclared when I try to compile this simple program:#include <stdio.h> #include <limits.h> int main() { printf("CHAR_BIT = %d\n", CHAR_BIT); printf("CHAR_WIDTH...

View Article

Why assigning will be error with Address offset on stm32f7?

The problem I encountered was very weird.First I'm sorry for my English and thank you for your patience! I want to make PB0 and PB1 generate low level to light LED.First my code is...

View Article

symbol '__aeabi_uidiv' not found for arm-none-eabi

I know this question has been asked several times (here for example) but so far none of the replies I've found seems to apply to my situation.On Debian stretch, gcc version 6.3.0, gcc-arm-none-eabi...

View Article


Is there a way to somehow group several symbols from different files together...

A bit of context first.I'm curently working on a modular (embedded) microOS with drivers, ports, partitions and other such objects represented as structures, with distinct "operations" structures...

View Article

Using a different gcc version from that included with Rtools with Rcpp on...

Before I embark on updating gcc, has anyone actually attempted this, and can they confirm building R from source is required to update the gcc version one uses to compile c++ code with Rcpp (i.e. not...

View Article


inline linker instructions in cpp with ?

I understand that there is a possibility to give instructions to the linker inline in the code. and is used for example here: https://github.com/tbenthompson/cppimportMy question is:Under what...

View Article

How to compile / link / build a small sized Loadable Kernel Module ( LKM )?

I am successfully bulding this trivial LKM with gcc but the resulting binary is 50kB is size.#include <linux/init.h> #include <linux/module.h> MODULE_LICENSE("GPL"); static int __init...

View Article


gcc permission denied in opening a flex file

I installed flex program in my computer . Codeblocks were installed previously . When I try to open my flex program in cmd by typing flex l1a.l gcc lex.yy.c -o app I found the following error : program...

View Article

Building GMP 6.1.2 on ARM64 Using Custom Built GCC 7.2.0 - Assertion Errors -...

I am trying to build GMP 6.1.2 for ARMv8-A Thunderx2t99 (AARCH64) CPU on RHEL7.4-ARM64.I can build BINUTILS 2.29.1, GMP 6.1.2, and CC 7.2.0 using the system GCC 4.8.5 (provided by RHEL7.4-ARM64). No...

View Article

Segmentation fault error for `create_directories`

I compile the following code with gcc-9 in QtCreator in Ubuntu:#include <filesystem> using namespace std::filesystem; int main() { bool any_new_folders = create_directories("aaa");...

View Article
Browsing all 22006 articles
Browse latest View live


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