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

How to make shared library with all dependencies inside?

I'm trying to build shared library libglog.so from next link But can't create shared library that has all dependencies inside I have used -static(this one is also used in make build), but ldd is...

View Article


Primitive types in C++ vs in C [duplicate]

In C++, having primitive type (int, double, char, ...) not-defined so undefined behaviour. There is no default value for primitive types, because they have no constructor. But the compiler is...

View Article


GCC + LD + NDISASM = huge amount of assembler instructions

I'm a newbie to C and GCC compilers and trying to study how C is compiled into machine code by disassembling binaries produced, but the result of compiling and then disassembling a very simple function...

View Article

Is it necessary to use the "volatile" qualifier even in case the GCC...

My question is targeted towards the embedded development, specifically STM32.I am well aware of the fact that the use of volatile qualifier for a variable is crucial when dealing with a program with...

View Article

pthread_create exits the program after finishing function

I try to create program that takes power readings about 10 times in one second and start a new thread every second/minute to update mysql database while the main program continues taking readings. But...

View Article


Cross platform dynamic libraries in "C" (Microsoft and gcc)

Ultimately I want to end up with a single set of source files that compiles to a Windows or Linux dynamic library depending on which platform compiled it.The problem seems to be that Windows requires...

View Article

A friend abbreviated template function - clang and gcc differ

The following code compiles with clang but not with gcc:template<typename T>class number { T num;public: number(T num = 0): num(num) {} friend auto add(auto a, auto b);};auto add(auto a, auto b)...

View Article

gcc for ARM refuses to include Newlib standard directories

I am trying to cross-compile with arm-none-eabi-gcc-9.2.x and had the following problem:undefined symbol 'PRIu64'(message shortened to necessary minimum by me) which was caused by the Newlib header...

View Article


How to solve compilation error for libwebsockets in C code [closed]

For my own application I have to use the libwebsockets in C and I use this instruction:struct lws_client_connect_info client_info;But when I compile my code I have this message:error: storage size of...

View Article


CodeBlocks no such file, no input files error, using GCC cygwin compiler

I have installed code blocks on Windows 10, before that I installed GCC Cygwin compiler.In Settings > Toolchain executables section I set up C compiler, C++ compiler,linker to dynamic libs to use...

View Article

Wrong answer in UVA Online judge Problem Number 272 Tex quotes

I have tried to code this problem using c++ string class and also using normal character input. I have used the same logic in both of my solution but the former gets AC while the latter gets WA. I am...

View Article

How to run (and compile) a C file with arguments with gcc?

I think it's a very simple question but I have less experience with command line. I have an old C program I want to run. It shows the following text:/* This is a stand-alone program intended to...

View Article

Coloring text in cmd (C)

I read that command prompt has added support for ansi escape sequences. However, when I tried to run a program that was working fine on a linux terminal it did not color properly in cmd.#include...

View Article


when register operends don't match the size suffix of an instruction

I'm new to x86-64 assembly origramming, just a question on:movl %rax, (%rsp)this generates an error as mismatch between instruction suffix and register, so it should be sth like:movl %eax, (%rsp)But...

View Article

Can a dynamically linked glibc application dlopen() a static linked musl...

I have a library that is currently dynamically linked against glibc.This library dynamically loaded into an application that is also dynamically linked against glibc. I have no control over the...

View Article


arm-linux-gnueabi-gcc can't compile?

I made a simple test.c file and then I entered the command and as result compilation fails with following errors:arm-linux-gnueabi-gcc -o test test.cAssembler messagesFatal error: invalid -march=...

View Article

gcc -O3 optimize :: xmm0 register?

I was writing a vsprintf function to use my 64-bit OS kernel (written by C), and checked that it works well in Visual Studio and Cygwin gcc.Then, I put to my kernel and run... but kernel doesn't works...

View Article


Request help in getting help or reporting an issue (arm-none-eabi-gcc 10.1.0-1)

I have no idea if my problem is already know or not and frankly I don't know what to do with it.uname -r5.4.44-1-MANJAROThe problem is that if I compile and load the vanilla micropython-1.12 using...

View Article

How can get g++ to use my own glibc build's headers correctly?

There's a TL;DR at the end if the context is too much!ContextI am trying to update the version of glibc a project uses to 2.23 (I know it's old, that's another issue). In order to do this, I need to...

View Article

Go 1.13: gcc-5 not in PATH

I've installed Go 1.13.4 in Debian Linux 10 using brew, package golang (previously I've removed golang-1.11 installed via apt). It follows brew info output.$ brew info golanggo: stable 1.13.4...

View Article
Browsing all 22233 articles
Browse latest View live


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