Josh Posted October 30, 2010 Share Posted October 30, 2010 I am new to xCode, and trying to include the following header files into a project: <direct.h> <io.h> <sys\stat.h> <sys\types.h> Xcode cannot find any of these. I have not downloaded them or set any search directory pointing to their location. I do not know if these are found on my iMac anywhere. In Visual Studio they get included without doing anything other than typing the name. What do I have to do to make Xcode know where to find these files, and do they need to be downloaded from somewhere? Thanks. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Mumbles Posted October 30, 2010 Share Posted October 30, 2010 The last two might be due to the slashes being the wrong way round. (Windows used to use the backslash, but now accepts either. Unix systems only ever accept the forward slash for directories.) As for the first two, what's "io.h"? is that not "stdio.h"? "direct.h" I've never heard of before Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
Josh Posted October 30, 2010 Author Share Posted October 30, 2010 I'm getting there...tons of build errors to go through... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Mumbles Posted October 30, 2010 Share Posted October 30, 2010 Just thinking, do you know which compiler Xcode uses? I remember my first attempts at building C programs in linux with gcc. It didn't have a clue where to find <iostream> but the newer g++ knew straight away where to find it without me having to alter the include path. I later found out that you're not supposed to use iostream because the standard version is stdio.h. Perhaps some of your "missing" inclues are suffering a similar problem. Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
Josh Posted October 30, 2010 Author Share Posted October 30, 2010 It's gcc. It works but I have other issues. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Canardia Posted October 30, 2010 Share Posted October 30, 2010 You should use g++, which is the C++ compiler of GNU, while gcc is only a C compiler. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted October 30, 2010 Author Share Posted October 30, 2010 same difference Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.