Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » include file path???????
include file path??????? [message #1801684] Thu, 24 January 2019 11:50 Go to next message
Eclipse UserFriend
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 13:09 Go to previous messageGo to next message
Eclipse UserFriend
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 14:27 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: include file path??????? [message #1801732 is a reply to message #1801690] Fri, 25 January 2019 06:41 Go to previous messageGo to next message
Eclipse UserFriend
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 06:43 Go to previous messageGo to next message
Eclipse UserFriend
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 15:25 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: include file path??????? [message #1801872 is a reply to message #1801762] Mon, 28 January 2019 16:16 Go to previous messageGo to next message
Eclipse UserFriend
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 09:29 Go to previous message
Eclipse UserFriend
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
Previous Topic:Symbols '' could not be resolved (for included files)
Next Topic:Eclipse Plugin Terminal Autoindenting
Goto Forum:
  


Current Time: Tue Jul 08 21:10:05 EDT 2025

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

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

Back to the top