OK, I don't think I'm doing it right with the header guards. Here are the files:
Original header:
Code:
/*
* Header File: EDFParse3.h
*
*/
# include <string.h>
# include <stdlib.h>
# include <ctype.h>
# include<cstdio>
# include <vector>
# include <iostream>
# include "stdafx.h"
using namespace std;
struct DataLine
{
char Param[20];
int Label, SFactor, SigBits;
int Bit30, Bit31, Max, Min;
DataLine()
{
Label=SFactor=SigBits=Bit30=Bit31=Max=Min=0;
memset(Param, 0, sizeof(Param));
};
} ;
class FSAD //Fixed/Selectable Analog Data
{
public:
char Name[25];
int nExpected; // size = nExected*2+1
std::vector < DataLine > vectDL;
};
/*#ifdef __cplusplus
extern "C" {
#endif */
#ifndef EDFParse3_HPP
#define EDFParse3_HPP
int FindWord(FILE *inp,char KeyWord[25], char *string);
int GetWord(FILE *inp, char *string);
void SkipWS(FILE *inp);
void ReadDataSec(FILE * inp, FSAD &Section , int nExpected);
//void print_Struct( struct DataLine sec );
//int ReadSection(FILE * inp, struct DataLine Sec[], int nExpected);
FILE* OpenFileEDF(FILE *out);
#endif
the header that uses the previous one:
Code:
# include <stdio.h>
# include <math.h>
# include <STDLIB.H>
# include "EDParse3.hpp"
# define BIT01 0X00000001
# define BIT02 0X00000002
# define BIT03 0X00000004
# define DATAMASK18 0XFFFFC00
#ifndef MakeArincAnalog_H
#define CreateWord_H
int MakeLabel(int number /*Input Octal label*/);
int MakeArincWordAnalog(DataLine Line, float value, int word);
//float DecodeArincAnalog(int word, float scale);
#endif
and the main:
Code:
.............
#include "BAFParse.h"
#include "EDFParse3.hpp"
#include "MakeArincAnalog.h"
....................
one of the errors:
Code:
fatal error C1083: Cannot open include file: 'EDFParse3.hpp': No such file or directory
MakeArincWordAnalog.cpp