PDA

View Full Version : How to compile programs in notepad++?


pairofstrings
Jul16-11, 12:54 AM
I cannot find the compile button anywhere in the program. Is there a shortcut key to compile the programs in notepad++?
Thanks!

chiro
Jul16-11, 02:21 AM
I cannot find the compile button anywhere in the program. Is there a shortcut key to compile the programs in notepad++?
Thanks!

Maybe you are looking for something like this:

http://npp-community.tuxfamily.org/documentation/notepad-user-manual/commands

You will have to use the right variables and look at the compiler command line arguments, but this should do the trick.

What compiler are you using?

pairofstrings
Jul16-11, 03:17 AM
What compiler are you using?
I was thinking maybe notepad++ will compile my written code and then run it. I don't know how to provide the path for a compiler.
I found the 'run' button under 'Run' menu but couldn't find compile button... therefore, I asked if there is any predefined short-cut key in notepad++ to compile the program.

Filip Larsen
Jul16-11, 06:40 AM
I cannot find the compile button anywhere in the program.
Thanks!

You should be aware, that Notepad++ is "just" an editor without any compiler, not a full blown development environment. If you want to run a compiler from Notepad++ you need to have a compiler installed for the language in question and you must then configure Notepad++ to call this compiler.

pairofstrings
Jul16-11, 07:55 AM
Can anyone tell me any program where I can write, compile and run few C/C++ programs in Windows.

chiro
Jul16-11, 08:16 AM
Can anyone tell me any program where I can write, compile and run few C/C++ programs in Windows.

Dev-CPP is a good fit for your needs:

http://www.bloodshed.net/devcpp.html

It's completely free and has a lot of features.

Personal note: I think the visual studio environment is a tonne better (and I prefer VC 6.0 to the later versions), but dev-cpp is still ok.

MisterX
Jul16-11, 01:31 PM
Visual C++ Express (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express) is also free.

swartzism
Jul19-11, 08:41 AM
Cygwin.

MisterX
Jul19-11, 11:56 PM
Cygwin.

is not an IDE or an editor :rolleyes:

swartzism
Jul20-11, 07:56 AM
Do you know what visual editor is? :rolleyes: