This probably has a really obvious answer, but I can't seem to find it. I am trying to use Xcode 4 to program with C++, and I want to create a project, build, and run it through Xcode 4 like I do for other languages. My problem is that I can't find the right type of project to do this.
Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project.
Or try this:
Open XCode.
File/New Project...
In the "New Project" Assistant, expand the "Command Line Utility" group.
Select "C++ Tool"
Click "Next"
Give a project name and directory, then click "Finish".
Press Cmd-Shift-R to open the Console window. Output will appear there.
Click the "Build and Go" toolbar button.
If you click around in the Mac OS part of New Project, there are a couple of options that I can see with a brief glance. Under Framework & Library there is an STL C++ Library you can access, and then under System Plug-in there's a barebones c++ plug-in you can use.
Is that what you mean, or am I misinterpreting the question?
Related
Thanks in advance for the help.
This is on Windows/MSYS2 (mingw64) Eclipse CDT Version: 2019-09 R (4.13.0) Build id: 20190917-1200.
I have figured out how to run cmake in order to create an Eclipse compatible project file. I then got the project into Eclipse via I got this File->Open Project from File System. I can then make/build that file and create my executables. I do get a couple warnings regarding improper project path but the code all compiles without error.
However, I need to "connect" the cmake build directory (i.e. the project in Kicad) to my source code in order to edit and/or debug the changes I wish to make. Based on my research I believe I have to do this via the Project Properties C/C++ Build menu, however, this menu is not present. I believe I access this menu by selecting the project on the left and right clicking or alt-enter or from the top menu Project->Properties.
For some reason I can't do a screen grab on Eclipse but I pulled the image attached from the online help file: (https://help.eclipse.org/2019-06/index.jsp)
.
My "Project->Properties" menu looks similar in that it shows Resource, Builders, plus more things but there is no C/C++ Build entry: it just goes from Builders to C/C++ General.
I found this "solution" https://bugs.eclipse.org/bugs/show_bug.cgi?id=508319 which seemed appropriate as I had installed the standalone debugger, however, uninstalling it had no effect.
Any suggestions?
Thanks
I wonder if there is a support for C++ in Netbeans 9. This link shows C++ on screenshot (when creating new project). However, after installing, I don't have one.
I wonder if there is a support for C++ in NetBeans 9.
The answer to that is definitely no, and definitely yes...
No, in the sense that the use of C++ on NetBeans 9 is not currently supported by Apache, and it is done at your own risk. NetBeans is currently being handed over from Oracle to Apache, and they haven't got to the C/C++ part yet. See What's Happened to My Favorite NetBeans Plugins? for more information.
Yes, in the sense that it is technically feasible to do it; the NetBeans 9 IDE allows you to use C/C++.
This is what you need to do:
Step 1 of 2: Make C/C++ available as a plugin.
Tools > Plugins > Settings tab > click the Add button.
On the Update Center Customizer screen:
Enter some value in the Name field (e.g. "My plugins"),
Enter http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz in the URL field
Click the OK button.
This should create a new entry in the Configuration of Update Centers list in the Settings tab.
Checking that new entry should instantly add plugins to the Available Plugins tab.
Click the Available Plugins tab, then click the Category column to sort the entries by category.
The Name of the entry at the top of the list should be C/C++. If so, you have successfully made the plugin available:
Step 2 of 2: Install the C/C++ plugin.
Check the C/C++ entry shown in the screen shot above, and then click the Install button.
Follow the wizard's instructions. The plugin will be downloaded and installed, and you will be required to restart NetBeans.
To confirm that C/C++ has been installed, click Tools > Plugins > **Installed tab. You should see an entry for the C/C++ plugin you just installed.
Also, verify that you can now create a C/C++ project through the Project wizard:
Notes:
The finer details on configuring C/C++ on NetBeans 9 (Tools > Options > C/C++) are unchanged from NetBeans 8.x. Refer to Configuring NetBeans IDE 8.0 for C/C++/Fortran for that.
Much of this answer has been copied from an answer I gave on problems with Tomcat on NetBeans 9, but the details are sufficiently different to merit a separate answer.
Netbeans 10 and 11 - adding C / C++ also works in the same fashion.
In Netbeans go to Tools->Plugins->Settings
Entry NetBeans 8.2 Plugin Portal is already present.
Click the checkbox next to this entry.
Switch to Available Plugins tab, click Check for Newest.
C / C++ is now on the list.
Computer that this is done is on Windows 10 x64.
You have to install C++ plugin (Tools -> Plugins)
I'm having issues with setting up Eclipse for C++ editing. I am using Cygwin and Eclipse (obviously), and I've gotten to the point of making the example project Hello World. However, when I try to create a new project I always get the message "Launch Failed. Binary Not Found". I know this is a common issue, but why would the default hello world project work and not mine?
Thanks for any help.
First Build the project ( project menu in navigation bar)
then, A new folder named Binaries will appear now in project explorer. (refresh if needed)
Now you can try running your project, and no errors will appear.
more info here
On VS 2010 C++ Express I am getting an error and my solution won't compile.
Here's what happens:
I open Visual Studio. (Obviously)
I click on "New Project" on the "Welcome" page.
I select "Windows Forms Application," name it, and click "OK."
I click on the debug button.
It says "The project is out of date."
I don't do anything else. No saving, no waiting. I wrote down what I did exactly when I did it. I've repeated this many times, and it still won't work.
Am I forgetting to add another file to my solution to help it compile? I didn't change the time, like others have said might affect it. It is on my harddrive, so it's a fresh project.
Other Questions that Haven't Helped Me:
This question: Nothing in it applied to me.
This question: All answers said a file was missing, but how could that be when it was just autogenerated two minutes ago? BTW: This is my first solution since I installed a week or so ago; I've just been repeating this process a few times. The only setting that have changed are the toolbar icons that I customised to my preferences.
This question: Everything is too complex for my skill level; I am used to some of the C/C++ syntax, but not as much with Visual Studio VC++.net.
The default VS settings are not entirely compatible with your desired one-click-does-all usage. C++ programmers normally favor building the program explicitly. Use Build + Build or press the shortcut keys for that command.
You can change that. Use Tools + Options, Projects and Solutions, Build and Run. Note the "On Run, when projects are out of date" setting. Change it to "Always build". The one below that is best changed to "Do not launch".
I'm so used to working with Eclipse for java related projects that I thought I'd work with Eclipse CDT for C-projects too. 'Show in Breadcrumbs' was a nifty little feature that would show what method the cursor currently is at (in Eclipse JAVA).
I don't see that option in Eclipse CDT. Is it in some way, hard to implement? The closest I could find to using the breadcrumbs feature was this :
Go to Outline pane, open its menu (down arrowhead on the top, right
side) and check the box "Link With Editor". Now the method name will
be highlighted to coincide with the cursor location.
From(source) : here.
Are there any other alternatives to get the Breadcrumbs feature working under Eclipse CDT?
No. :-(
The option Link with Editor is not only available in the Outline view, but also in the Project Explorer view, and others
You can use Mylyn, which also automatically links the Project Explorer view with the file/function you edit.