answersLogoWhite

0

C++ is plain-text source code -- it cannot be executed. It must first be compiled and then linked to produce a machine code file specific to the hardware you are targeting. That is, a C++ program compiled and linked for Windows platforms will not execute on Mac or Linux platforms -- it must be compiled and linked separately on each platform. If the source code includes platform-specific libraries and code, compiler directives can be used to filter the correct libraries and code for each platform being targeted. Once compiled and linked, the resulting machine code file (typically an EXE or DLL) can then be executed. Some sources are intended to build static libraries (LIB files). These cannot be executed as they are intended for static linking (achieved during the link process). The C++ Standard Library is typically implemented via static libraries.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

'How does a C plus plus code execute on a computer system' like does the computer has a library or such that can understand C plus language and translate it into binary?

By execution time, the code has already been translated into binary ("compiled"). However, the program may still rely on outside libraries (.dlls for example) that have also been pre-compiled.


What is the difference between simulater and c c plus plus etc languages?

A simulator is a computer program which reproduces the behaviour of one system upon another system. Computer languages are used to create computer programs.


What has the author Maurice Dalois written?

Maurice Dalois has written: 'APL*PLUS/PC' -- subject(s): APL (Computer program language), APL PLUS System (Computer system), Database management, IBM Personal Computer, Programming


What are the steps to execute a c plus plus programme?

Build it, link it, run it.


How do you download A plus anywhere learning system on a different computer and still have the same login etc?

How do you download A plus anywhere learning system on a diffrent computer and still have the same login etc?Read more: How_do_you_download_A_plus_anywhere_learning_system_on_a_diffrent_computer_and_still_have_the_same_login_etc


What accurately describes the grammar of a conditional-statement in c plus plus?

if (conditional_statement) {//Code to execute if true}if (conditional_statement) {//Code to execute if true} else {//Code to execute if false}if (conditional_statement) {//Code to execute if true} else if (another_conditional_statement) {//Code to execute of the second conditional statement is true} else {//Code to execute if neither statement is true}There are a few things to note about if statements that might be helpful:You can have as many 'else if' declarations in an 'if' statement as you want (These are called stacked if's)You can specify an if statement without the curly braces ('{' and '}') if there is only one line of code. For example: if (x > 10) x = 0;This will set x back to 0 if it is greater than 10, just like a normal 'if' statement but without the curly braces.As a result of this, 'else if', to the compiler, is not special at all. An 'if/else-if/else' statement is actually just two 'if/else' statements stacked on top of one another, where the 'else' doesn't have curly braces (hence the term "stacked if statement"). To demonstrate, the following two if statements are actually interpreted exactly the same by the compiler:if (x -10) {x = 0;} else {x++; //Increment x;}}


How C plus plus is better than C?

C++ is a language code for computer and lapatops which is used in programming but C is a grade so they are different.


How do you compile a C code in MS VS c plus plus?

Just build it with F7, or execute it with F5/F5. The MS VS Compiler understands the difference between C and C++. You can name the source file as something.C, if you want.


What programs can be run on the sony vaio z?

That computer will do just about anything your daughter will need plus more. Computers usually have pretty up-to-date operating systems which can execute a number of file extensions.


When you a type the letter computer plus plus plus plus plus plus plus automaticaly typed?

letter + must be wedged in 'pressed condition' by dust or any other particles. please clean keyboard & restart your system, and problem will be rectified


How the turbo c plus plus use in the computer?

How the turbo c plus plus use what in the computer.


What is clear screen in c plus plus?

For computers that have Windows installed, you can use System("CLS"); to clear the screen. This statement calls on the operating system to find the "cls" command and execute it. However, this statement makes your program less portable as it makes it dependent on the Windows OS in order to clear the screen.