Category "gcc"

Qt 5.1.1 compiler setup on Ubuntu

First of all, I should point out that I've never used linux before. I have a clean install of 64bit ubuntu, I downloaded Qt 5.1.1 for linux 64 bit from http://

Embedding resources in executable using GCC

I'm looking for a way to easily embed any external binary data in a C/C++ application compiled by GCC. A good example of what I'd like to do is handling shader

How do I change order of Libs in a cmake file?

Link order matters. I have observed that when I compile my program with: gcc `pkg-config --cflags --libs gtk+-2.0` program.cpp -o program which produces a nu

I failed to compile C++ code on Visual Studio Code

I'm using "glut" library and trying to compile code by gcc compiler, but it gives undesireble result. When I try to build command (Ctrl+Shift+B) on Visual Studi

Static assert in C

What's the best way to achieve compile time static asserts in C (not C++), with particular emphasis on GCC?