my main program is, bffr.c :
#include <stdio.h>
#include <stdlib.h>
#include <dsk6713.h>
#include <dsk6713_aic23.h>
#include "aic_32bit_io.h" #include "self_header.h"
#include "tab.h"
#include "CST2.h"
DSK6713_AIC23_CodecHandle hAIC23_handle;
union { Uint32 sample32bit; unsigned short sample[2]; }input;
CODSTATDEF CodStat ;
PWDEF Pw;
//void Impls_respns_calc(float *ImpResp,float *PerLpc,float *QntLpc,PWDEF Pw); float fram[240],y[240],ssb_fram1[60],ssb_fram2[60], ssb_fram3[60],ssb_fram4[60]; float R_sbfrm1[12],R_sbfrm2[12],R_sbfrm3[12],R_sbfrm4[12],W_hns[60]; float a1[11][11]={{1},{1},{1},{1},{1},{1},{1},{1},{1},{1},{1}},a2[11][11]={{1},{1},{1},{1},{1},{1},{1},{1},{1},{1},{1}},a3[11][11]={{1},{1},{1},{1},{1},{1},{1},{1},{1},{1},{1}},a4[11][11]={{1},{1},{1},{1},{1},{1},{1},{1},{1},{1},{1}}; float p_est1,p_est2,f[240],lpc_a4[10],PrevLsp[10],CurrLsp[10],UnqLpc[40]; float Lsp[40],QntLpc[40],PerLpc[80],Dpnt[40],ImpResp[240],B=0.0,PrevErr[145]; Uint32 Rez; int L=0; //float p[6],q[6],p_d[6], q_d[6];
void main() {
int i;
my header file where i declare functions used in main file is , function.h :-
/* default functions used in self blocks */
extern PWDEF Pw;
void FRMR();
void HPF(float frm[], int n);
void SB_FRMR (float y_frm[], int n);
void LPC_anlys(float frm_ssb_fram1[],int s,float frm_ssb_fram2[],int n,float frm_ssb_fram3[],int o,float frm_ssb_fram4[],int p );
void PER_WEGTH_FLTL(float frm[],int n); void PITCH_ESTMTN(float x_f[], int m);
void HRMNC_NSE_SHPNG(float x_f[],int a,float x_p_est1,float x_p_est2);
float LPCtoLSP_QNTN(float x_lpc_a4[],int a);
void LSP_INQNTN(float *Lsp,float *PrevLsp,int LspId, Uint16 Crc);
void Lsp_Int(float *QntLpc ,float *CurrLsp, float *PrevLsp); void LsptoA(float *Lsp);
void Impls_respns_calc(float *Impres,float *PerLpc,float *QntLpc,PWDEF Pw);
float Polynomial(float *Lpq, int CosPtr); float DotProd(float *in1,float *in2, int len);
the file where i defined constants and structures is , CST.h :-
/* harmonic noise shaping filter parameters */
typedef struct { int Indx; FLOAT Gain; } PWDEF;
but problem is that after rebuilding all these together in project i got error in all lines of header file conntaing function declarations which uses PWDEF as undefined type.
i follow rules of ANSI C;
kindly help me to sort put this issue.