Tag Info

New answers tagged

0

std::is_same is a C++11 feature. Ubuntu 12.04 has GCC 4.6.3, which has only incomplete C++0x (not yet C++11) support. You can try by specifying the standard: g++ --std=c++0x ...


0

At last, I just figured out the best solution was to install MinGW on Wine and run the g++.exe from Wine. It works like a charm really and never gives a single problem once the setup is finished.


0

Although this is a couple months old, if you did want g++ --version to output 5.1 follow these instructions: How do I use the latest gcc (hint: symlinks)


1

g++ filename.cpp e.g: g++ One.cpp This will generate output file named as (e.g.): a.out If you create another program and compile that (e.g.): g++ Two.cpp This will also generate output file named as (e.g): a.out This means you can get the output of only last compiled program if you execute that. To avoid this use (e.g.) g++ One.cpp -o One ...


0

It says Permission denied, i.e. you do not have the permission to run this program. You will need to set the executable bit with command chmod +x /media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test There is the catch though. It looks like the program is on a USB stick. If that stick is formatted as vfat filesystem then you may not be able to set the ...


0

Change the include to #include <eigen3/Eigen/Dense>


0

When starting a new project, you need to select one of the "QML App with C++ plugin" templates: I personally prefer CMake over qmake, but either one will accomplish the same thing. When the new project wizard completes, you will end up with an application consisting of a QML interface and a QML plugin written in C++. It also serves as a functional ...


1

You don't need g++ to compile c++ programs if you have a set of c++ libs. Installed use the proper library flags. Say we want to use gnu's stdc++: gcc -o target source.cpp -L/usr/lib/architecture & distro dependent/ -lstdc++ and for a long time the guiding people of GNU/Linux where c oriented so until some what recently distros had to package a c ...


5

You will need something that can compile C++ files. The two main compilers in Linux are GCC and Clang. GCC is the default compiler in Ubuntu. GCC isn't installed by default because not everyone needs to compile a file. GCC is typically only used by developers. However, you can easily install it by installing the build-essential package, which is a ...


0

There are tons of linux software install systems, so narrowing it down the two you might want to most look at are the .deb packages and source packages. For Ubuntu's .deb format see http://packaging.ubuntu.com/html/packaging-new-software.html That set of instructions depends on the traditional source distribution, a real under taking all truth be told. ...


2

looks like to need to install the stdc++ dev files sudo apt-get install libstdc++-4.8-dev then to compile the code g++ -o execname ./sourcefile.cpp -std=c++11


2

AlainD, Geany actually has the options that you're looking for built in. At the top of the screen towards the middle there is a button that looks like a little gear, as well as a button that looks like a brick wall. These are your options for compile and run. Once you've written your code to your satisfaction, you simply click the compile button, and at the ...


2

General question, general answer: The code works and can be compiled: g++ foo.cpp ./a.out Output: hello world !! good job nothing & something i jitendra singh in first c++% Your code in foo.cpp: #include<iostream> using namespace std; int main() { cout << " hello world !! good job nothing & something" << "\n" ; ...


2

There is nothing wrong with your code, but the auto specifier is present since c++11 version of the standard of C++ programming language. You must use g++ -std=c++11 a.cpp to compile your code.


0

Wine is a general solution for running Windows programs. If you have the DLL files installed in the appropriate location along with the program in question. If you wish to build an application natively for Ubuntu, that was written using Windows controls from third party vendors, you would need to port your application to a portable toolkit framework such as ...


0

WinBGIm graphics library is only for windows. Possible options: use original Pascal graphics library (with Pascal language obviously) use different graphics library with C++ use winbgim with C++, but cross-compile the code of the program to get a windows binary and run it in wine edit There are newer implementations of BGI graph library: SDL_bgi and ...


0

I dig into it a little bit and found about that I can use either "xdotool" command line tool or libxdo (for c++ intergration) for it.



Top 50 recent answers are included