Why doesn't my C++ code see this code?

I'm getting the following error message
Ima2DFunctorKWIC.cpp(383) : error C3861: 'createData': identifier
not found

The Ima2DFunctorKWIC.cpp file contains the following lines:
#include "createData.h"
createData(srcAs,m_nMeasCols,m_nImaCols,m_nChas);

The include file createData.h includes the following
#ifdef createData_h
#define createData_h
void createData(IceAs& srcAs,int nImaCols,int nImaRows,int nChas);
#endif

createData.cpp contains
void createData(IceAs& srcAs, int nCols,int nRows,int nChas)
{
}

and the makefile is definitely compiling createData.cpp.
gamalpha wrote:
The Ima2DFunctorKWIC.cpp file contains the following lines:
1
2
#include "createData.h"
createData(srcAs,m_nMeasCols,m_nImaCols,m_nChas);
This declaration is missing a return type.

gamalpha wrote:
The include file createData.h includes the following
1
2
3
4
#ifdef createData_h
#define createData_h
void createData(IceAs& srcAs,int nImaCols,int nImaRows,int nChas);
#endif 
createData_h is not defined, perhaps you mean to use #ifndef?
Thanks, that was it.
Topic archived. No new replies allowed.