Hey,
I am trying to write 3 functions that will be available for a number of programs. After reading this tutorial "Multiple source files for one program (C++ example)", I wrote a header file that defines all three functions and three separate source code files to define those functions. When I include the sourse file in the main program it doesn't recognise the functions.
here's the source file:
Code:
# include <stdio.h>
# include <math.h>
# include <STDLIB.H>
# define BIT01 0X00000001
# define BIT02 0X00000002
# define BIT03 0X00000004
# define DATAMASK18 0XFFFF800
#ifndef CreateWord_H
#define CreateWord_H
int CreateLabel(int number /*Input Octal label*/);
int CreateWordAnalog(int label, float scale, int nbits, float value);
float DecodeArincAnalog(int word, float scale);
#endif
and the include statement:
Code:
# include <CreateWord.h>
The error messages:
Code:
create a word.obj : error LNK2001: unresolved external symbol _DecodeArincAnalog
create a word.obj : error LNK2001: unresolved external symbol _CreateWordAnalog
Debug/create a word.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Is there anything I'm missing?