the art of #includes
the art of #includes
- Subject: the art of #includes
- From: Jim Mooney <email@hidden>
- Date: Mon, 19 May 2003 23:30:06 -0400
This is driving me nuts and should be pretty simple....but of course I
can't find the answer or tried every combo to no avail
I have a declaration as such in a .c file
#include <QuickTime/QuickTimeVR.h>
#include <QuickTime/QuickTimeVRFormat.h>
#include <QuickTime/QuickTimeComponents.h>
#include <Endian.h>
#include <FixMath.h>
#include <Script.h>
#include <Sound.h>
#include <stdio.h>
#include <string.h>
Since my problem is of the same basic nature in all the compiling
errors here is the problem.
Endian.h is located in the CoreServices.framework.....but is contained
in the sub framework CarbonCore.framework.
When I compile, I am told Endian.h is not found. Now mind you I can
see Endian.h sitting in the right folder and the left check box is
checked on......ie everything is a go. So figuring there was some
magical unknown, I began attempting in vain to try
#include <CoreServices/Endian.h> and
#include <CoreServices/CarbonCore/Endian.h> and
#include "CoreServices/Endian.h"
none worked.....so I then took the sub framework CarbonCore and made a
copy in the frameworks folder and added this folder to the project.
This time I get an error that the framework in contained in
CoreServices...... and that I should try including that file.
So I deleted the CarbonCore framework I had duplicated and
recompiled......successfully........What is with that!!!
After doing that, the plain #include <Endian.h> passed without a shrug
during compilation.
Why would this happen......and or could someone please give me the
proper.....absolutely perfect way to
declare the include #include <Endian.h> and never have a compile issue
that PB can't find the file?
This would be a el' biggest pet irritant I have in adding includes.
Great thanks in advance....
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.