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

Programming ATtiny10 with Arduino ( "ld.exe" errors)

🤔 IssueI am trying to compile a sketch in "Arduino IDE 1.8.9" for ATtiny10 and i am always getting these errors:When Using ATTiny10...

View Article


Image may be NSFW.
Clik here to view.

Installing GCC 9.2.0 using MSYS2 on Windows

After installing MSYS2 and updating all packages and installing gcc toolchain using pacman -Sy mingw-w64-x86_64-toolchainI have the 9.2.0 version as shown in the picture above. But when i run gcc.exe...

View Article


GCC atomic shared_ptr implementation

According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57250, GCC 4.9 has support for atomic shared_ptr operations.Using GCC 4.9.2, I'm able to compile a program that uses atomic shared_ptr. The...

View Article

Dev C in Windows 8: gcc Internal Error

I am a teacher's assistant for a C programming class, and the instructor uses Dev C++ as the compiler for the class. Personally I would use a different one, but the choice is not mine here. Recently I...

View Article

GCC is generating binaries filled with zeroes

I'm trying to figure out why the binaries generated by GCC are so large.Consider this empty program:int main() { return 0; } Now I build it with GCC 9.2.1 20190827 (Red Hat 9.2.1-1) and glibc 2.29...

View Article


Mac OS X R error "ld: warning: directory not found for option"

I am trying to install an R package from source, but getting an error:* installing *source* package ‘mclust’ ... ** package ‘mclust’ successfully unpacked and MD5 sums checked ** libs gfortran-4.8...

View Article

Replace C function and mark the older as error/deprecated

The question is a bit tricky but it is quite simple.Have a shared code in C, and I would like to "ban" some function (typically system()). There will be a replacement function (eg. my_system()). This...

View Article

how to get python.h working with mingw gcc compiler

i have included the path to python.h(C:\Users\vinay\AppData\Local\Programs\Python\Python37-32\include) file and gave the library path of the project to...

View Article


cmake msys2 mingw is not able to compile a simple test program

Yesterday i was able to configure and compile my project without any issues. Now i did some system updates and the compiler isn't able to pass the check. I'm stuck there for hours now-I'm running...

View Article


boost.regex fails to link with MinGW and GCC compiler

On Windows 10 I installed MinGW, and use Eclipse to write C++ programs together with Boost libraries 1.71.0 (for example boost/algorithm/string.hpp). I can successfully create the executable using...

View Article

Image may be NSFW.
Clik here to view.

Is there any solution to fix this MinGW download error?

I am getting the below MinGW download error. Can someone help me with it ?

View Article

Why can my C program run in "git bash", but not in "cmd"?

I wrote a demo using libpq to connect to a PostgreSQL database. I tried to connect the C file to PostgreSQL by including#include <libpq-fe.h> after I added the paths into system variables...

View Article

Virtual function overloading in diamond hierarchy produces different results...

Folowing code produces different results on clang.#include <iostream> struct Dummy1 {}; struct Dummy2 {}; struct A { virtual void foo(Dummy1) { std::cout << "A"<< std::endl; } virtual...

View Article


Subtracting chars doesn't overflow when it should [duplicate]

This question already has an answer here:Why does C++ prints unsigned char value as negative? 3 answersWhy must a short be converted to an int before arithmetic operations in C and C++? 4...

View Article

GCC - Unused Variable Warning inside Structs

I am searching for a solution where GCC (Arm-Embedded Version) is able to tell me if a variable is not existing at all, when allocated as part of a struct. The current examples do not warn at all,...

View Article


Running objdump under docker shows different result

Assume this c code:int main(){ return 0; } Compiled using gcc under a normal running linux machine, and running objdump -d on the output shows the following:00000000004004cd <main>: 4004cd: 55...

View Article

prohibiting float to double conversion

I'm learning C programming, so during writing my code, one question emerged in my head. I'm writing program which works with numbers featuring floating point, but it does not require so big mantissa as...

View Article


Disable unrolling of a particular loop in GCC

I have the following 4x4 matrix-vector multiply code:double const __restrict__ a[16]; double const __restrict__ x[4]; double __restrict__ y[4]; //#pragma GCC unroll 1 - does not work either #pragma GCC...

View Article

Use of 'auto func(int)' before deduction of 'auto' in C++14

I have compiled following program in GCC using C++14. #include <iostream> using namespace std; auto func(int i); int main() { auto ret = func(5); return 0; } auto func(int i) { if (i == 1) return...

View Article

Image may be NSFW.
Clik here to view.

C++ Pre-compiled Headers: Two generated .gch are never identical for the same...

I am trying to understand why pre-compiled header objects for a system header file are never the same between two compiler calls if the source file didn't change.I can show this behavior with this very...

View Article
Browsing all 21993 articles
Browse latest View live


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