Re: xCode Compile problem
Re: xCode Compile problem
- Subject: Re: xCode Compile problem
- From: Daniel Oberhoff <email@hidden>
- Date: Thu, 24 May 2007 09:45:59 +0200
Hi,
This looks like IIRFilter.h was included twice. Try wrapping it with
guards (i.e.
#infdef IIRFILTER_H
#define
[.... original IIRFilter.h ... ]
#endif
)
and see if the problem persists.
Cheers
Daniel^
Am 24.05.2007 um 02:31 schrieb Russell Edwards:
Hi All
Firstly thanks Bill your information has proved very useful.
My AU is now coming along very nicely and has hit the point where i
am starting to implement a bank of digital filters. To do this i
have designed and tested a class in c++ that provides all the
functionality i need. I have compiled (with g++) and tested this
class as a terminal app with no problems (the main function was
placed in a separate file and hasn't been imported into the AU
project).
I have imported the filter class into my AU project and keep
getting an error at compile.
"error: redefinition of class 'IIRFilter' IIRFilter.h: 14
previous definition of class 'IIRFilter' IIRFilter.h: 15
I have pasted the header file below. Has anyone got any ideas what
might be causing this? The include statement and the namespace
command were needed when compiling as an application but removing
them doesn't have any effect.
Many Thanks
Russell Edwards
/*
* IIRFilter.h
* SwellSym
*
* Created by Russell Edwards on 11/05/2007.
* Copyright 2007 __University of York__. All rights reserved.
*
*/
#include "/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
CoreServices.framework/Versions/A/frameworks/CarbonCore.framework/
Versions/A/Headers/MacTypes.h"
using namespace std;
class IIRFilter //line 14
{ //line 15
struct coefficient
{
Float32 cValue;
coefficient *next;
coefficient *previous;
};
UInt32 numCoefficients, denCoefficients;
coefficient *numCoefficientStart;
coefficient *denCoefficientStart;
coefficient *numCoefficientEnd;
coefficient *denCoefficientEnd;
coefficient *inputs;
coefficient *outputs;
public:
IIRFilter();
~IIRFilter();
void addNumeratorCoefficient(Float32 in);
void addDenominatorCoefficient(Float32 in);
Float32 filter(Float32 in);
void reset();
};
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40googlemail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden