Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » include file path???????
include file path??????? [message #1801684] Thu, 24 January 2019 16:50 Go to next message
Alan mcculloch is currently offline Alan mccullochFriend
Messages: 5
Registered: January 2019
Junior Member
hi,

could someone help me out the IDE set for c++ on mac cannot find ,via include, the iostream.h file . How do I set things up properly to even run the hello world file?
Report message to a moderator
Re: include file path??????? [message #1801690 is a reply to message #1801684] Thu, 24 January 2019 18:09 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Usually you use <iostream>

But you should make sure the Indexer is being given the compiler builtin paths.
Re: include file path??????? [message #1801692 is a reply to message #1801690] Thu, 24 January 2019 19:27 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Maybe the OP does not have a C/C++ toolkit in the machine.

On OS X, there are the compatibility issues between GCC and LLVM.


--

Tauno Voipio
Re: include file path??????? [message #1801732 is a reply to message #1801690] Fri, 25 January 2019 11:41 Go to previous messageGo to next message
Alan mcculloch is currently offline Alan mccullochFriend
Messages: 5
Registered: January 2019
Junior Member
thank you for your assistance.

trouble is I wouldn't know how to check or change that. So how would you go about that?
Re: include file path??????? [message #1801733 is a reply to message #1801692] Fri, 25 January 2019 11:43 Go to previous messageGo to next message
Alan mcculloch is currently offline Alan mccullochFriend
Messages: 5
Registered: January 2019
Junior Member
Thank you for your assistance.

Trouble is i'm not sure how to go about checking or changing that. Would you be able to point me in the right direction?
Re: include file path??????? [message #1801762 is a reply to message #1801733] Fri, 25 January 2019 20:25 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
You can check for the C toolkit:
Open OS X Terminal
Type: gcc --version
(There are two dashes before 'version').

The response should be like:
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Please open your Eclipse, open Help -> Help Contents -> C/C++ Development User Guide, and read at least the 'Before you begin' part.


--

Tauno Voipio
Re: include file path??????? [message #1801872 is a reply to message #1801762] Mon, 28 January 2019 21:16 Go to previous messageGo to next message
Alan mcculloch is currently offline Alan mccullochFriend
Messages: 5
Registered: January 2019
Junior Member
Hi there, thanks for your help.

I tried what you suggested and this was the result:

USERs-MacBook:~ USER$ gcc --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
USERs-MacBook:~ USER$

I take it that means gcc is not even installed?
Re: include file path??????? [message #1802265 is a reply to message #1801872] Tue, 05 February 2019 14:29 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Sorry for the delay, I was out of country.

It seems that you do not have the C/C++ toolkit at all.
Google for 'OS X GCC install'.

My MacBook (OS X 10.11.6, El Capitan) responds:

MacBook-Pro:~ tauno$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


--

Tauno Voipio
Previous Topic:Symbols '' could not be resolved (for included files)
Next Topic:Eclipse Plugin Terminal Autoindenting
Goto Forum:
  


Current Time: Thu Apr 25 04:46:20 GMT 2024

Powered by FUDForum. Page generated in 0.02993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top