Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

walkingmac

macrumors 6502
Original poster
Mar 30, 2003
261
0
Greater Cincinnati
I am trying to learn how to Develop Software, and am on a good start I think. I am taking it slow and realize it will take time, but I am having a problem whenever I try to build simple example app I get these errors on the build compile:

Compliling main.m (3 errors)
• header file 'OT/OT.h' not found
• header file 'NSLCore/NSLCore.h' not found
• header file 'SecurityCore/SecurityCore.h' not found

Does this make sense?
Does anyine know what I am doing wrong?
Is there something I am missing?
 
That's pretty vague.

How are specifying them?

#import <OT/OT.h>

or

#include <OT/OT.h>

Do you have the include path specified, if you're not using an IDE such as Project Builder or CodeWarrior?

If you're using an IDE, do you have the right kind of project specified so that those directories are included in the path?
 
I am not sure what u are asking.

Sorry I am really new at this stuff.

But if I read what ur asking me right, I am using Project Builder and all 3 errors when I click on them to reveal whatever it is that they reveal, all of them have the '#include <OT/OT.h>' format.

As for the right project, where do I look for more info?

Sorry.... I know I don't really know what I am doing here, but I pick stuff up quick and really only ask questions when I can't figure it out on my own or in my research for the answer. Please have pitty and help. https://forums.macrumors.com/images/icons/icon7.gif
 
I suggest you read a book on learning C first, before you do anything, especially one tailored to learning C on Unix type systems.

When you ask questions like the one you asked, about the specific headers, try to tell us what frameworks/Libraries your trying to add, and those who are familliar with them can help you better. In this case, it looks like you are using carbon.
Did you do do an #include <Carbon/Carbon.h> ?

Carbon.h is an umbrella header that takes the tedium of having to find and include a bunch of specific headers yourself...it just includes them all...I believe.

Check Here
 
thanx for the input...

First I have been investing in books and this project is one of them from a book.

Second, the file main.m is in the 'other sources' folder. It is a cocoa app and there is that '#import <Cocoa/Cocoa.h>' in main.m.

So I am still without any direction as to why I am recieving these errors. are there files that should have been placed somewhere and maybe there was a bad install of the Developer Tools?

I still don't know.
What am I doing wrong?
Has anyone seen these errors before?
I even tried building an app that does nothing (just made a new cocoa project) and tried to build that and the same errors appeared. Does any of this make sense?
 
Originally posted by walkingmac
thanx for the input...

First I have been investing in books and this project is one of them from a book.

Second, the file main.m is in the 'other sources' folder. It is a cocoa app and there is that '#import <Cocoa/Cocoa.h>' in main.m.

So I am still without any direction as to why I am recieving these errors. are there files that should have been placed somewhere and maybe there was a bad install of the Developer Tools?

I still don't know.
What am I doing wrong?
Has anyone seen these errors before?
I even tried building an app that does nothing (just made a new cocoa project) and tried to build that and the same errors appeared. Does any of this make sense?

Sounds like a bad install. No beginning Cocoa program would use those files directly.
 
Originally posted by walkingmac
thanx for the input...

First I have been investing in books and this project is one of them from a book.

Second, the file main.m is in the 'other sources' folder. It is a cocoa app and there is that '#import <Cocoa/Cocoa.h>' in main.m.

So I am still without any direction as to why I am recieving these errors. are there files that should have been placed somewhere and maybe there was a bad install of the Developer Tools?

I still don't know.
What am I doing wrong?
Has anyone seen these errors before?
I even tried building an app that does nothing (just made a new cocoa project) and tried to build that and the same errors appeared. Does any of this make sense?
Show me your header file.
No dirty jokes please....:D
 
Originally posted by walkingmac
header file? where is that?
Sorry, Main.m doesn't have an main.h file, it looks like this: YOURAPPNAME_Prefix.h where YOURAPPNAME is the name of your application. Also, show the main.m file as well if its possible.

Header files are on the left pane of Project Builder (PB). Each class/app needs a .h header file.
 
ok... heres the project....

Like I said it is a sample project... very basic (there are no tricks here... nothing dirty... just a Currency Converter)

http://download.yamsp.com/

See if it works for you... if so then the problem lies on my end with the install of the Dev Tools
 
Re: HELP... software develoment hiting a wall, and I haven't really stared yet!

Originally posted by walkingmac
I am trying to learn how to Develop Software, and am on a good start I think.

take a class

from here on out, it only gets harder
 
if there was something I could find local sure... but at this point I dont' think that is neccessary. I think there is just a problem with my system and I was hoping to to crosscheck this hinch with another developer on their sys
 
Originally posted by walkingmac
if there was something I could find local sure... but at this point I dont' think that is neccessary.

suit yourself. but know that the self-taughts usually develop pretty poor habits. i've had more than a few working for me and their presence did nothing but slow down the good developers.


???
 
Originally posted by walkingmac
ok... heres the project....

Like I said it is a sample project... very basic (there are no tricks here... nothing dirty... just a Currency Converter)

http://download.yamsp.com/

See if it works for you... if so then the problem lies on my end with the install of the Dev Tools

Yep, compiles fine for me. I'd reinstall the Dev Tools to be sure then try again.
 
Look, thanx for all your 'help' zimv20!

cazlar (a fellow newbie) was able to do more in a a few lines then you were in two posts! even after ur disshearting remarks!

Thanx everyine else for your input...
but spcially to cazlar and Catfish Man.

the heart of the matter is not my inexperience but a bad install of Dev Tools. Well see where a re-install of that gets me.

thanx again
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.