Function prototypes should have extern as well.
extern tells the compiler that either the function or variable is defined somewhere in the project and the linker should find them in the symbol table at the end.
Code: Select all
#ifndef NMEA_H
#define NMEA_H
//#include "buffer.h"
#include<stdio.h>
extern char longitude[10];
extern char lattitude[10];
extern char lon_;
extern char lat_;
extern char utcTime[10];
extern short fixMode;
extern short satsUsed;
extern float MSL_Altitude;
extern float course;
extern float speed;
extern short day;
extern short month;
extern short year;
/*extern void init_NMEA_Engine();*/
extern void parseNMEA();
extern void processGGA();
extern void processGLL();
extern void processVTG();
extern char readFromBuffer();
extern void readNextParameter(char* store);
#endif