• Forum
  • Lounge
  • Need help finding an interpreter to comp

Need help finding an interpreter to compile

Hi everyone, I'm trying to figure something out. I'm using the latest version of Code::Block and I'm even using Dev C++. Maybe I'm doing something wrong, but I'm a visual learner, so when it comes to programming, I do some reading and then look at how others have done it and so fourth. Then study changes in the code and compile it, but I'm having difficulty finding any open source interpreters that I can get to run. Any help will be greatly appreciated.
What platform? What errors are you seeing? Did you install the full version of Code::Blocks or just the IDE? There are a lot of open questions here.
Also, the word "interpreter", at least in my experience, refers to the dynamic line-by-line execution that languages such as Python are capable of, as opposed to a compiler which takes a whole source file and turns it into machine code. I do not know of a C++ interpreter; I assume some exist, but I doubt it will be something that comes with any popular IDE by default.

But as far as compilers: If you downloaded CodeBlocks ( http://www.codeblocks.org/downloads/26 ), make sure you have the version that says mingw-setup. This one comes with a basic compiler that will work, although sadly is a bit outdated. Then, follow a CodeBlocks tutorial and get a basic "hello world" to build and run.

If you want to install your own compiler instead of the one codeblocks provides:

If you're trying something more complicated than a Hello World, and are receiving errors when compiling, make a help thread in beginners or general and someone will probably try to help.
Last edited on
I don't think OP is asking about actual interpreters, but anyway:

There are C++ interpreters (maybe one or two?). One is ROOT. There's also a JIT sample that comes with libclang. ROOT has a REPL like other interpreters, but last time I checked uses a dialect of C++ that's different from standard C++. libclang JITs proper C++, but can't do REPL. Also, right now libclang leaks memory every time you compile something. On the other hand, libclang's JITted code is exactly what Clang outputs, so you get the same performance as with the command line compiler.
You can use the compiler Open Watcom V2 Fork (http://www.openwatcom.org/). It can work and create executable files for Windows (16-bit, 32-bit and 64-bit versions), Linux (32-bit and 64-bit versions), OS/2 and MS-DOS ( 16-bit and 32-bit modes). Or Digital Mars C/C++ (https://digitalmars.com/download/freecompiler.html) - is a replacement for Symantec C++. If your PC doesn't have a floating-point processor (pre-Pentium), you can associate emulation with a floating point in your program. I also recommend to use the site https://assignment.essayshark.com/computer-science-help.html where besides helping with various assignments, you can find useful information in the blog about this language.
Last edited on
Topic archived. No new replies allowed.