Prev | Current Page 1101 | Next

Michael McCallister

"openSUSE Linux Unleashed"

Go to the Build menu and select Build (or
Build All, if you have more than one file). After the application has been compiled and
built, from the same menu, select Execute. You should see a terminal pop open with
???Hello World!??? and instructions on how to close the window.
TIP
The GCC determines which compiler to use based on the file extension of your source
code. Table 28.1 shows common extensions for the supported languages. You can
override this behavior by using the -x option (see man 1 gcc for more information).
TABLE 28.1 GCC Expected File Extensions for Source Codes
Language Extension
Ada Source: .ads, .adb
C Source: .c
Header: .h
C++ Source: .C, .cc, .cp, .CPP, .cpp, .c++, .cxx
Header: .H, .hh
Fortran Source: .F, .FPP, .fpp, .r
Objective-C Source: .m
Header: .h
Objective-C++ Source: .M
Header: .h
The compiler creates an executable program called hello from the source file, hello.c.
Heed any warnings you may get from the compiler. If you get any, you??™ve mistyped something
or forgot to press Enter (new line) at the end of the code.


Pages:
1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113
szkolenia dla przedsiębiorców oferty spa Wczasy nad morzem projektowanie wnętrz opony michelin