answersLogoWhite

0

Why wont your C plus plus programs compile?

Updated: 8/20/2019
User Avatar

Wiki User

6y ago

Best Answer

C++ programs won't compile if they contain compiler errors. The compiler will tell you precisely where the error is, and the type of error, unless the error is in a macro. The compiler cannot see macro definitions because they are inline expanded prior to compilation.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why wont your C plus plus programs compile?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

CAn you work in c or c plus plus without editor?

You can compile, link and execute programs without text-editor.


How do you compile and run C plus plus programs on the Macintosh?

Use Xcode. See related links below.


What are the disadvantages of lengthier c plus plus computer programs?

The source files take a longer time to compile, and reading and maintaining such programs is harder.


Is C plus plus preprocessor software?

Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.


What are the steps in c plus plus?

Code, compile, link, run.


Does C plus plus compiler will compile C in programming?

Yes we can compile a c program using c++ compiler. Because c++ evolved from the c. c++ have some additional features beyond c. c++ support almost all concepts used in c.


Can visual basic compile a c plus plus program?

As much as your car can fly.


Can all C programs are executable in C plus plus?

Some C programs can be compiled in C++, yes.


How many compilers are there to compile a C program?

There are many C compilers. In modern usage, the most common ones are Microsoft Visual C++ (which can also compile C programs) and GCC (GNU Compiler Collecttion, originally GNU C Compiler).


Advantages of c plus plus over java?

The main advantage is that C++ programs compile to native machine code and therefore execute many times faster than equivalent Java programs, which compile to byte code suitable for interpretation by the Java virtual machine. C++ is also more efficient since it requires no interpretation (and therefore no interpreter), and can use memory just as efficiently as assembler. The main disadvantage is the code must be compiled separately for each platform. With Java, programs need only be compiled once for any platform.


Is it possible to write a c plus plus program on Windows without installing any programs and if so how?

No, it is not possible. You need a C++ compiler, linker, and libraries, and you will only get them by installing programs, such as Visual Studio, or the GNU system. Technically, it's possible to WRITE one. You could use Notepad to do so. You'll just need the other programs if you actually want to compile and run it.


Can you make programs of C in visual c plus plus?

Yes.