New answers tagged compiler
I also try to install g77,and in the way of the writor.But my problem is that: No candidate version found for g77 No candidate version found for g77 No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Please help!
I figured out the problem. I didn't find the specific solution but I found a work around. Apparently the classes aren't being linked. So I put all the classes into the main file and it worked perfectly!
You should use g++ for C++ programs always! That's because: gcc is GNU C Compiler g++ is GNU C++ Compiler So they are different compilers and so they are different packages. The main differences: gcc will compile: *.c / *.cpp files as C and C++ respectively. g++ will compile: *.c / *.cpp files, but they will all be ...
You should be compiling using g++, gcc compiles C programs. To install all required packages of g++, do sudo apt-get install build-essential on a terminal and then to compile your program, do g++ -g main.cpp -o Main.
Top 50 recent answers are included