How to Check the Version of my gcc?

The symlink to the 4.8.2 directory is nothing to worry about, it’s normal for the libstdc++ headers on Red Hat Enterprise Linux (and therefore CentOS) to be arranged like that. gcc –version will tell you the version of the gcc executable in your path. rpm -q libstdc++-devel will tell you the version of the package … Read more

cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t

I recently downloaded MinGW-w64 from Sourceforge onto my external hard drive, where all the files reside in: E:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin When I try compiling my first “Hello World” program using gcc on Windows 8.1, I get a cc1.exe System Error, that tells me The program can’t start because libwinpthread-1.dll is missing. Try reinstalling the program to fix … Read more

Gcc error: gcc: error trying to exec ‘cc1’: execvp: No such file or directory

Explanation The error message told us, that the build-time dependency (in this case it is cc1) was not found, so all we need — install the appropriate package to the system (using package manager // from sources // another way) What is cc1: cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. … Read more

Make Error 127 when running trying to compile code

Error 127 means one of two things: file not found: the path you’re using is incorrect. double check that the program is actually in your $PATH, or in this case, the relative path is correct — remember that the current working directory for a random terminal might not be the same for the IDE you’re … Read more

C Unknown type name ‘my_structure’

Because of how you’ve ordered your includes, the compiler sees void some_func(my_structure *x); before it sees typedef struct abcd { int a; } my_structure;. Let’s walk this through. Assuming my_struct.h is processed first, we get the following sequence of events: UTILSH is defined MAINH is defined Because UTILSH is already defined, we don’t process my_struct.h … Read more