LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

redeclaration error

All,

Don't quite understand why the compiler thinks there is a redeclaration in the following typedef:

typedef struct {
  int start_drop;
  int start_drop_limit;
  int max_internal;
  int min_internal;
  int end_level_range;
  int open_channel_avg;
  int end_level_value;
  int max_min_int;
  int max_length;
  int min_length;
} Fsa_Settings;


Here's the error message:

  "FSA_Settings.h"(39,15)   Redeclaration of 'Fsa_Settings'.

Suggestions appreciated.
Thanks in advance
0 Kudos
Message 1 of 2
(2,901 Views)
Ok, fixed it by adding..

#ifndef FLAG
#define FLAG
...
#endif

0 Kudos
Message 2 of 2
(2,899 Views)