Need (build?) files for eclipse on Windows 7 64-bit - c++

I've just downloaded Eclipse for C/C++ developers and I'm encountering issues with certain phrases and inclusions. Specifically, I can't perform cout or cin, and the lines #include iostream and using namespace std are errors according to the program.
Others have encountered these errors as well, and I understand that I'm missing some files dealing with the toolchain(?) I'm using. This is all very new to me and I don't know where to get the files I need to let the program work properly.
If anyone could direct me toward what I need or possibly explain what is going on I would greatly appreciate it. Again, I am running this under Windows 7 64-bit.

First, I'm going to need you to enter Preferences in Window->Preferences. Then you are going to search for C/C++ and then New C/C++ Project Wizard. Over there you must look for the Toolchain your eclipse is using for you C/C++ projects.
The Toolchain is the Compiler, eclipse is just an IDE to help you develop. The compiler gets the job done. So if you have Visual C++, MinGW or CMake installed then maybe your paths are all wrong. If not maybe you need to install a distribution of those to allow Eclipse to build your projects.

Related

How to set up Visual Studios Code for Windows 10 and Raspberry Pi Pico

Many thanks for the replies to my previous question that got associated with this one What is a CMake generator?.
That is great as far as it goes but still leaves me not knowing what to do next.
As I understand it so far: Cmake is a utility that runs the compiler and linker. It knows nothing about the platform I am using so I need a Cmake generator to write platform-specific directives.
Except, I have already installed the GCC compiler and VS lets me select it - so what else is the generator going to do for me? I have no idea what linker is in use or how to specify it. Does that come into the equation? Also, as the Cmake generator is so important why do the VS Code install instructions not mention it and why isn't it an option in the VS Code Extensions menu?
Finally, and most importantly, which generator should I use, where can I download the executable? Is installing it in VS Code just a matter of editing the path to the executable into the "The Cmake generator to use" parameter of Cmake Tools exension?
I know I could probably just hack together something that works but I would really like to know exactly what is going on.
Thanks in advance for answers relevant to Windows 10 and not Linux.

How to download, build and include PDCurses in Visual Studio 2019 for C++ on Windows

I'm fairly new to C/C++ but have never tried to include external libraries before in my projects as I've mostly been doing tutorials and such. These have been mostly console applications/games. When I was looking for an alternative to the "evil" system(" ") commands I was pointed to Curses.
Now I've gone to the GitHub for both branches of the PDCurses source library (wmcbrine's branch and Bill-Gray's Branch) but every time I try to build library it returns multiple errors (happy to provide a image of the errors if need be).
The biggest issue is that the documentation is a little difficult to understand for an absolute beginner and most tutorials are extremely outdated. I was hoping that someone know's of a relevant tutorial on how to get PDCurses up and running on windows (for C++) or could explain how to do it on here.
So, I have figured out how to get PDCurses compiled using it's Makefiles (Makefile.vc specifically) and such.
To anyone who may have issue doing this in future, make sure to read the README.md file very slowly and carefully. From a beginners perspective it was a bit vague but it does contain all the information needed it in it, it should just be read a few time 😅.
It also should be noted that when compiling the library into a .dll for Visual Studio 2019 using the nmake function, you have to run the command in the x86/x64 Native Tools Command Prompt. Which one you use will depend on the architecture you plan to build your project in. If your not sure where to find it, open you start menu>all apps>scroll down to the folder "Visual Studio 2019" and they all should be in there.
Run the "nmake" command in this shell configures a .bat file which optimises for x86 or x64 architecture respectively. Hopefully this helps anyone who might ask this (or a similar) question.

Change Mac Eclipse to Window Settings

from my computer class last year, I have a bunch of c++ programs. I made these programs in Microsoft visual c++ 2010. That program I used it only available on Windows so I needed another program for I can still code. I now have a Mac and I want to still be able to code, so I downloaded Eclipse. My question is, how do I change the Eclipse setting to be the same as the windows? For example, when I copy my coding, it finds (using namespace std) and (#include ) as an error. Thank you!
Which version of eclipse did you install? Unless you installed the versions of eclipse with C/C++ plugins, it's just a Java IDE.
But uh Eclipse kind of sucks anyways so I'd recommend trying Clion.

How to set up Apache Thrift with Eclipse && MinGW in Windows?

I need to configure Thrift for Eclipse project with MinGW compiler. I googled for it. I couldn't find proper instructions to do that? Can somebody suggest any suitable way or proper link to do that?
There are several partial answers to this.
The Windows build is made by means of MinGW cross compiler on a Linux machine.
Since (at least) 0.9.2 it is no longer necessary to use MinGW to build the Thrift compiler on a Windows machine.1) Aside from the fact, that you don't need to do that at all, because a precompiled EXE is available on the download pages, there is a nice Visual Studio project to build the Windows Thrift compiler EXE. The project has only two dependencies: Bison and Lexx/Yacc, which are both available elsewhere as precompiled Setups as well.
In either case MinGW is only used to build the compiler. If you want to build the libraries with MinGW, I'm not sure if that even works. This way of doing things is not implemented or supported, simply because nobody needs it.
Which brings us back to the question, why you think you "need" it this way.
1)To my knowledge, numerous severe problems exist with the autotools and all the stuff needed to build Thrift under MinGW on a Windows machine. You will have to patch things, build some from source, spend a lot of time and do some strange things with your file system to make it work. At least that was the case when I stopped using MinGW to build Thrift about two years ago. And even if you get it to work, you still only get the compiler (which you could easily download in a fraction of that time), not the libraries.

Eclipse for C++ Windows 7 64-bit PC

I am using 64-bit Windows 7 PC and I want to develop C/C++ programs using Eclipse IDE.
I have tried DOSBox but it was not working for me. Also, I din't liked it as well.
I just want to use Eclipse for the same. I tried using CDT Plugin in Eclipse but that doesn't worked.
When I create a new C++ project, there are different Tool Chains available - Cross GCC, Microsoft Visual C++, MinGW GCC. I really don't know what exactly it is. I tried all but I am getting error and snapshot attached :-
Basically, it is not able to detect what iostream, stdio, cout is.
I tried different solutions available on other posts but none worked for me.
I don't know what to do with it. I know I am having problem due to 64-bit Windows but I want to fix this now. Please help!
You need to install MinGW, and then select the MinGW toolchain when selecting a new project.
Well I tried different tool chains on Eclipse IDE, but nothing worked.
Then I installed CodeBlocks IDE and plugins for the same as well.
Sic: Now, I am running C/C++ codes on Code Blocks perfectly.
You need to download MinGW and install the C++ compiler, don't forget to add the MinGW bin to the system variables under "path".
I recommend you using Visual Studio Code. If you do install Visual Studio Code, make sure to install Code Runner plugin to make running C++ projects easier.