1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Can Anybody Recommend a Compiler?

Discussion in 'Programming' started by YellowRusty, Jul 27, 2017.

  1. YellowRusty

    YellowRusty
    Expand Collapse

    Joined:
    Nov 8, 2016
    Messages:
    751
    Hello,

    I'm currently taking my first steps in programming, and I thought that creating a simple text-based game would be a good start.

    Due to some ... slight confusion surrounding the title of a Youtube tutorial, I managed to program one in Batch while thinking I had done it in C++.

    While it was still valuable coding experience (and I do plan on showing it off once I've got a few more things completed), I'd still like to try making one in C++. For that, I believe I need a compiler in addition to Notepad++. Can anybody either disprove this notion or recommend a good compiler?
     
  2. Neo

    Neo
    Expand Collapse

    Joined:
    Oct 31, 2015
    Messages:
    173
    You should start with the integrated compiler of the visual c++ ide. External compilers are a bit tricky to use, and you as a beginner need it as easy as possible (trust me, I gone through the same steps years ago).
    https://msdn.microsoft.com/en-us/library/bb384847.aspx

    Oh and btw, good luck and patience ;)
     
  3. YellowRusty

    YellowRusty
    Expand Collapse

    Joined:
    Nov 8, 2016
    Messages:
    751
    Okay, I'm looking at this, and from what I can tell, there is a $499.99 compiler/Development environment offered through the Windows store under the same name, and Wikipedia mentions that it is available as both freeware and registerware.

    Is Visual Studio Community a free software, and is it your opinion that I should use it instead of Notepad++ in order to avoid having to use an external compiler?

    Incidentally, how the heck does an external compiler work anyway? It can't be as simple as pasting your source code into a window and hitting a button, can it?
     
  4. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    7,051
    your posts here have suggested that you're already facing an uphill battle.

    Visual studio community is free. Visual studio professional/enterprise is not.

    Visual studio is an integrated development environment. Notepad++ is merely a text editor (and my least favourite tbh, sublime and the windows port of gedit are both better).



    manual compilers, you invoke from the command line

    csc /target:library /out:File2.dll /warn:0 /nologo /debug *.cs

    Enjoy.

    Visual studio manages a huge amount for you, keeps files organised in a solution, manages references to libraries, syntax highlights, gives graphical aids for GUI design, gives debugging through breakpoints and stacktraces, even gives a lovely little predictive text thing.





    Oh for reference. C++ and batch are nothing like each other at all. I am rather bemused as to how anyone can confuse the 2. I also wouldnt look at C++.
    When installing visual studio, it'll ask what packages you want, make sure to enable C#, python and if you want C++. Play with python first, then look at C# and then C++ last, its not a language for an amateur that cant tell a shell script from code.
     
  5. YellowRusty

    YellowRusty
    Expand Collapse

    Joined:
    Nov 8, 2016
    Messages:
    751
    I noticed. The confusion mainly stemmed from the way the tutorial had been titled. My delusion that I had made a very basic C++ program didn't last very long though.

    Alright then ... I've gone back and added Python and C# to my copy of visual studio. It's probably a good idea for me to go from Batch to another scripting language, and then move into coding with C# - thanks for your advice!
     
  6. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    1,042
    Just go straight into Python. There is an incredible amount of documentation, tutorials, how-to's, and general help available with it. I thought myself Python in a slightly unusual way, I kinda just threw myself at some code and figured it out. If you want to, you can do it that way, or you can start from Python's beginner's guide. Documentation for the latest version can be found here. Or just Google "python docs" like I have for years. I'm a terrible person, I know. I used to use tabs to indent.