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

Does asmlinkage mean stack or register?

In most languages, C included the stack is used for function calls. That's why you get a "Stack Overflow" error if you are not careful in recursion. (Pun not intended).If that is true then what is so...

View Article


gcc could not find header files on mac os catalina

I am installing package which cannot be compiled with Apple's gcc; at the same time homebrew gcc installs gcc-9 which also appears to be problematic in this case.For this reason I had to install gcc...

View Article


Differences in executables produced by different C compilers

If one were to try to exploit a binary file, would it make a difference if the executable is produced by a specific compiler and linker?I'll elaborate the problem. I am trying to understand how windows...

View Article

Make - Internal compiler Error under QT 5.14.2 "Q_CORE_EXPORT"

I just installed QT Creator with QT under Win10 to build an already existing project. (Under Ubuntu everything went fine running the Make file). I'm not an expert for QT therefore I'm not able to find...

View Article

Default scheduling in OpenMP (gcc compiler)

I am using OpenMP in a C++ progam. According to the gcc documentation, the default scheduling is dynamic with a chunk size of 1 ->https://gcc.gnu.org/onlinedocs/gcc-9.3.0/libgomp.pdf (p22).I decided...

View Article


Eclipse CDT - how to use an argfile for the linker for a too long command line

I'm using Eclipse CDT 9 Neon with GCC 6.3 on Windows 7 for a STM32 project.I have installed the GNU ARM Plug-in and use sh.exe for long command line management (cmd.exe from windows have a limite of...

View Article

Linux OF_DECLARE: How of_device_id struct in section '__$table_of_table'...

Going though clk source code, I found that most clocks use CLK_OF_DECLARE macro, which, when expanded, creates of_device_id structure in section __clk_of_tableThere is __clk_of_table structure...

View Article

C++ utf-8 literals in GCC and MSVC

Here i have some simple code:#include <iostream>#include <cstdint> int main() { const unsigned char utf8_string[] = u8"\xA0"; std::cout << std::hex << "Size: "<<...

View Article


gcc : Is using -Werror and -pedantic considered good practice?

I'm just digging into the gcc manual and some things are still unclear to me:When specifying a std, should I always use -pedantic in conjunction?When using -g, it the standard level sufficient or...

View Article


How to apply Trunk patches to mingw-w64 8.1

I am working on getting access to the filesystem header from C++17, using mingw-w64 8.1 on Codeblocks. Particularly, there is a remove_all function to delete all files in a directory which would be...

View Article

Using SOIL.lib with GCC - Error adding symbols: File format not recognised

I've been recently trying to transfer my Visual Studio OpenGL project to VS Code, using GCC via mingw-x64 on Windows 10. I've been making steady progress working this all out as I am fairly new to c++...

View Article

Can't install cargo-binutils library: Failed to find tool. Is `gcc.exe`...

When I run cargo install cargo-binutils, I get the below error. I have gcc installed and in my path, to the point where where gcc correctly returns the location. gcc version: gcc.exe...

View Article

Hiding C++ symbols with -fvisibility=hidden

I have a C++ library with a C API, and I have set the -fvisibility=hidden compiler flag,and then I have set __attribute__ ((visibility ("default"))) on C API methods.However, I still see visible C++...

View Article


Printing array of integers generates weird output in Ada

I created a simple Ada program that allows a user to populate an array with a maximum of 100 non negative and non zero integers and then prints them out. When I call the function to print out the...

View Article

gcc can't find `FT_Error_String` when trying to compile

I am trying to compile an application that uses freetype2, I downloaded and compiled the latest version of freetype2 from an official site.I compile the program using this command:gcc ttf2sfn.c...

View Article


check if fclose() fails and return specific error

So, I tried to find an answer to this question unsuccessfully.I know what to do and how to manage such a case - by using fluss/NULL etc. afterward. But checking it is tricky to me.So, basically:open...

View Article

not able to install boost library for c++ in windows

I am trying to install boost library for c++ in windows. I am using a GCC compiler. I searched for it on the internet but everywhere the only installation of boost library in visual studio is given. I...

View Article


Is it possible to generate ansi C functions with type information for a...

I am wondering what methods there are to add typing information to generated C methods. I'm transpiling a higher-level programming language to C and I'd like to add a moving garbage collector. However...

View Article

Could I get instruction by register in GCC?

If I have a pattern like:A: ((set reg:DI 73) (zero_extend:DI (reg:SI 83)))...B: ((set reg:DI 88) (plus:DI (reg:DI 73) (reg:DI 55)Does gcc has API to find insn A by register 73 in B?

View Article

How to do an explicit fall-through in C

The newer versions of gcc offer the Wimplicit-fallthrough, which is great to have for most switch statements. However, I have one switch statement where I want to allow fall throughs from all...

View Article
Browsing all 22001 articles
Browse latest View live


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