answersLogoWhite

0


Best Answer

You don't "open" gcc, you "use" it.

$ cat >helloworld.c

/* helloworld.c */

#include

int main (void)

{

puts ("Hello, world");

return 0;

}

^D

$ gcc -W -Wall -pedantic -o helloworld helloworld.c

$ ./helloworld

Hello, world

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

I'm not sure what is meant by 'open' in the question.

If gcc is installed, to compile a 'C' source file...

$ gcc -o hello hello.c

will compile a 'C' source file named hello.c, naming the compiled binary file 'hello'.

I suspect this is not precisely what is meant in the question though. If the use of a GUI is desired, there are many that will invoke the gcc compiler without leaving the GUI editor. Of course, the first and perhaps best of these, is Emacs (though anyone with a dissenting opinion is welcome to debate the relative merits of other editors with RMS, I have no desire to enter into such a debate.)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you open gcc compiler in ubuntu?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

How do you install gcc compiler in Ubuntu?

Run (from a terminal): sudo apt-get install gcc build-essential


How can you run C programes in ubuntu 10.10 without any gcc compiler?

Source programs don't run, obviously, so you should install the compiler first.


What command do you use to find the version of the GCC compiler?

gcc --version


Difference between gcc compiler and other or benefits of gcc over c compiler?

gcc is a c compiler among many other things. It can also be used to compile code in other languages. gcc is a fairly advanced compiler and is used to compile Linux along with most other free(as in free speech) software.


How compiler do compilation?

Use a compiler program, such as bcc, gcc, javac, etc.


What is the difference between GCC compiler and turbo c compiler?

1. The Gcc compiler cna support multiple languages such as c,c++,Java,Fortran,Pascal etc.... Whereas in turbo c cpmpiler,it doesn't support multiple languages. 2. GCC compiler is a free software,... Whereas in turbo c cpmpiler , it is not a free software. 3. The GCC compiler is is a portable compiler,it runs on most plateform avilable today... Whereas in turbo c cpmpiler, it is not a portable compiler.


If during compilation in CC compiler changes the name of the function ie func to 2314ufdifunc what to do so that the compiler will use the same name given by the user?

set the environment variables CC=gcc export CC then it takes the compiler as gcc


Does ubuntu include c compiler?

yes


Is NotePad Plus Plus a compiler?

Notepad++ is a text editor, not a compiler. You can however, enter source code into Notepad++ and then compile it with a compiler such as GCC.


What is the name of the C compiler used by Linux?

gcc is the most common C-compiler for GNU/Linux platform.


How do you get C?

To use c you need a text editor and a compiler such as gcc.


Does Red Hat Enterprise Linux support the GCC compiler?

Yes.