i need a bit of help. i have the following code
Code:
#ifndef PERSON_H_INCLUDED
#define PERSON_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
typedef struct nod
{
char name[50];
unsigned int birthdate;
char address[100];
char cnp[14];
struct nod *next;
struct nod *prev;
} PersonEntryT;
typedef struct
{
int size;
PersonEntryT *last;
PersonEntryT *first;
}ListDT;
extern ListDT *createDList();
extern PersonEntryT *createDNode( char name[], unsigned int birthdate, char address[], char cnp[] );
extern PersonEntryT *insertDDepOnKey(char a[], PersonEntryT *p, ListDT *L);
extern PersonEntryT *findDyear( int key, ListDT *L);
extern PersonEntryT *findDcnp(char key[], ListDT *L);
extern char *printDItem(PersonEntryT *pItem);
extern PersonEntryT *insertDAtEnd(PersonEntryT *p, ListDT *L);
extern void deleteDItem (void *pItem);
extern int keyCmp(int a, int b);
#endif // PERSON_H_INCLUDED
after compiling i get the following error serie:
Code:
error: storage class specified for parameter 'insertDDepOnKey'
error: storage class specified for parameter 'findDyear'
error: storage class specified for parameter 'findDcnp'
error: storage class specified for parameter 'printDitem'
error: storage class specified for parameter 'insertDAtEnd'
error: storage class specified for parameter 'deleteDItem'
error: storage class specified for parameter 'keyCmp'
what is the problem?
i saw that there was another person who had the same problem, i checked all the possible remedees that u suggested him, but i didn't find any missing semicolon or parathesis. Also this is my only header file in the program, the parameters are checked, their type and order is correct. Thought i bet the problem is with them .
Thank u for any help, suggestion.(PS i would need an urgent respons)