Tagged Questions
1
vote
1answer
226 views
How to compile a c++11 program using future in Ubuntu 12.04?
I'm trying to compile a c++ program in Ubuntu 12.04. I'm using g++ 4.7 (installed from a ppa). I'm using std::future, but I have an error.
The code:
$ cat main.cpp
#include <iostream>
...
4
votes
2answers
283 views
How do I compile/run C++ code in the console?
I'm trying to run my C++ code using the console. I used the header file conio.h like I did when I used Turbo C++ IDE in Windows, and I ran the code in console using
g++ filename.cpp
I have ...
1
vote
1answer
73 views
linking cpp object file to c object file and create executable
Suppose i have a c++ file, created an object file and c file created another object file.
Now i need to link both into one executable. While i'm trying it is giving errors about c++ not found.
Can ...
4
votes
1answer
207 views
I can't compile a C++ program with the g++ command
If I try compiling my C++ source file by the following command:
g++ a.cpp
it outputs:
The program 'g++' can be found in the following packages:
* g++
* pentium builder
try:
sudo apt-get intsall ...
0
votes
0answers
74 views
Compilation error on shared object files
Even after including the path and -soname in the linker settings, of course I have included the original .so files in both /usr/lib and /lib folders, I still get errors. I have followed this tutorial ...
3
votes
1answer
2k views
Why can't I install g++?
while trying to compile a program with the following command:
g++ -o <output_file> <my_file.cpp>
I found the following report....
The program 'g++' can be found in the following ...
0
votes
2answers
680 views
g++ cannot find include files (qt3)
allan@allan-VirtualBox:~/blackjack_for_the_hopelessly_luckless$ make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT ...
1
vote
0answers
833 views
Compiling g++ 4.7.0 in 11.04 [closed]
I encountered the following problem while compiling g++ 4.7.0. The file asm/errno.h is not found because it is being search for in /usr/include/linux/ instead of /usr/include/x86_64-linux-gnu, which ...
2
votes
1answer
2k views
How to get 32 bit version of libraries on Ubuntu 64 bit?
I'm trying to compile a program which uses Google's V8 library (which is 32 bit). Therefore any library I use within my program also has to be 32 bit. Where can I download the 32 bit version of ...