Skip to content

Tag: g++

COTson linux installation

I’m new in linux, and i know that this should be a stupid question, but i didn’t find anything over the internet, so i decide to ask it here: During the configuration of the COTson program using this line of code it gives me an error: CODE: ./configure –simnow_dir ../simnow-linux64-4.6.2pub …

Buggy simple function for binary search (C++)

I wrote a simple function for binary search, but it’s not working as expected. I have a vector with 4000000 32-bit ints. Usually, when I search for a number, if it’s there, it’s found and the index is returned, if it’s not, -1 is returned (the index always corresponds to the value, but…

Linux – cannot find shared library

Using Code::Blocks (13.12) / g++ to create some test code using the DVB V5 libraries on Ubuntu 14.04. The library was downloaded, built and installed following instructions in the download. Had it all working then had a disk crash. Decided to reinstall everything from scratch rather than use a backup, and dow…

Calling Assembly code from C++

I’m trying to write my own I/O library, so the first step is just being able to output a character. So far, this only needs to work on Linux. I wrote what I believe to be a solid _putc: label in x86 (with Intel syntax), and I put it in “io.h”, then called it from my main file, “test.cp…

Qt creator platform codegen flags

Seems Qt creator “platform codegen flags” does not take effect (Tools->Options…->Build&Run->Compillers). Mentioned there “-std=c++11” flag however it was not added to Makefile. Also added g++-5 there – also no effect: CXX = g++ CXXFLAGS = -pipe -g -Wall -W $(DE…