I'm new to coding so please forgive me if I've asked something too obvious.
I'm trying to set up Visual Studio Code (Version 1.46.1) on my Mac running Catalina (10.15.4), and I want to build my C++ code using gcc. I understand that Mac uses Clang and since I want to get into Competitive Coding, I'd prefer if gcc was used in VSC when I build my code. How do I do that?
I've tried following the documentation as well as various YouTube videos but I can't find anything given in a simple structure. Also, I wanted to make sure that I was using C++ 17 and not any other version.
Thanks in advance!
Related
I am trying to port a piece of software from Linux to Windows. Actual software is written primarily in C++ and significant code is in C language. I tried to compile this code using Visual Studio 2012 (because I am using windows 2007) but at linking time I am getting many errors which says the function calls in C files are unknown entries. This software compiles, links and run fine on Linux so there are no issues with include of or anything silly like that.
Has anyone run into this issue? Does anyone know how to resolve it?
Please note that I have to do a native port so cygwin or other mingw are not options for me.
Thanks for your help in advance.
Chances are, you are using some kind of Linux-specific library. The most obvious example would be unistd.h, which doesn't really have a direct equivalent in Windows.
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.
I'm trying to compile cairo into a lib file using Mingw. I've downloaded the cairo, cairomm, and pixman source packages, but I can't figure out where to go from here. The INSTALL help file talks about a bunch of scripts that I can't seem to run or even find ('./configure', 'make', 'make install'). Googling the issue is bringing up nothing helpful.
I feel like this is a noobish question to ask. I've only recently started getting into the C++ side of programming (coming from Java/C#), and this is the first time I've had to compile an external library before using it. The shocking lack of explanations on the process makes me wonder if there was some chapter of a tutorial somewhere I was supposed to read that makes this whole process a complete no-brainer.
I think this project isn't supporting building with Mingw.
There are build instructions here for building with Visual Studio (which can be downloaded for free as the Visual Studio Express Edition from MS Website: http://www.visualstudio.com/en-US/products/visual-studio-express-vs
Build instructions here:
http://cairographics.org/end_to_end_build_for_win32/
It's probably possible to make this work for MingW, but you will have to make it work yourself, which may be a bit of a long step for someone who is new to compilers and build scripts in general.
I have tried today for five hours to install OpenCV and run a simple program to check that it works. I have not been able to do this despite looking at several tutorials and youtube video's. Could anyone tell me firstly if there is a difference between using cygwin or mingw? Why is it so hard to link the OpenCV libraries to netbeans. I love the IDE but will have to use Visual Studio if I cant get it working tomorrow. I have not been able to find a tutorial that references opencv2.4.6 which is the latest version and netbeans 7.4. For anyone interested the cygwin version I down loaded was 1.7.25. The main problem I am having is finding out how to correctly link the OpenCV headers etc to netbeans. If anyone has made a record of how to do this then sharing it would be great. Maybe I'm going wrong with the system variables I'm just not sure. As said any help or directions to up to date tutorials would be a great help. I love Netbeans and want to keep using it.
Thanks
I stumbled across this post while trying to set up OpenCV with Netbeans 7.4 on windows 7.
After finally getting everything to work I wrote this guide: OpenCV Netbeans C++ setup guide
I was able to get all the libraries linked. Also the clean/Build and run works for my C++ opencv 2.4.7 app from netbeans 7.4. Hope this can help anyone else who might want to use Netbeans for OpenCV coding.
OpenCV 2.0.0a is very different to the older version of OpenCV and so is very different to setup. I have tried to set it up for Visual C++ Express 2008 but to no avail so I wanted to ask whether anyone has got it to work on Dev C++ and if yes can they tell me how.
You may want to have a look at this