Question:
How do you compile C++ in Komodo Edit?
Supertab
2009-07-09 14:44:23 UTC
Hi i have just started learning C++ and i use Komodo Edit i opened a C++ Document and wrote my first ever script in C++
____________________________________________
#inclide

main()
{
print("HELLO WORLDS\n");
return 0;
}
__________________________________
and then i wanted to see if it works... Please give me step by step instructions on how to compile it so i can see what that script would do.
Four answers:
anonymous
2009-07-09 14:49:45 UTC
Well....first you need a compiler. I doubt the editor comes with one. Once you get a compiler from someplace, you can configure the editor to call the compiler whenever you want to build your file.



By the way, your program isn't going to work unless you spell "include" correctly. Also, you might want to try "Hello, World" instead of screaming HELLO WORLDS.



Just a suggestion.
anonymous
2009-07-09 15:04:41 UTC
You'd be better using something like Code::Blocks if you're just learning. Using Komodo requires you to configure all the toolsand directories yourself, and you probably don't understand what each is for. Code::Blocks also comes with a compiler already to make things simple for you.



As previous posted mentioned, you need to spell include correctly. The compiler will point this out for you (and highlight it when spelled correctly).

The file you're including should be stdio.h. Not studio. stdio is an abbreviation of Standard Input Output



Your main function should also be written "int main()". Meaning it returns a value which is an integer.



And finally, it should be "printf". Meaning, print a formatted string.

.
anonymous
2016-02-26 02:08:33 UTC
If you want something that's really geared toward C/C++/C# and don't mind paying a few hundred, Microsoft Visual Studio .NET is the way to go. Otherwise, if you're looking for something free, I'd suggest Eclipse.
MBHProduction
2009-07-09 16:35:35 UTC
IDK? I thought u knew Everything!! lol.



And dont pick me for best answer, i dont deserve to win.



Really, dont choose me.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...