I am getting a declaration is incompatible error even if the definitions and declarations of the said functions are the same. Here are the error message below from TI Code Composer Studio after build. Any ideas what could be causing these errors?
Error Message:
'#148 declaration is incompatible with "int32_t exoPal_atoi(char *)" (declared at line 65 of "C:\EK-TM4C129\exosite\exosite_pal.h") exosite_pal.c /getting_started_with_wlan_station_exosite_write/exosite line 509 C/C++ Problem
'#148 declaration is incompatible with "int32_t exoPal_sendingComplete()" (declared at line 62 of "C:\EK-TM4C129\exosite\exosite_pal.h") exosite_pal.c /getting_started_with_wlan_station_exosite_write/exosite line 260 C/C++ Problem
c function declarations at exosite_pal.h
#ifndef EXOSITE_HAL_H
#define EXOSITE_HAL_H
#include <stdint.h>
/*!< This defines the size of the rx buffer in the PAL. This buffer is used
to place incoming data from the modem in.*/
#define RX_BUFFER_SIZE 512
extern char exoPal_rxBuffer[RX_BUFFER_SIZE];
// defines
// functions for export
void exoPal_init();
uint8_t exoPal_setCik(const char * read_buffer);
uint8_t exoPal_getCik(char * read_buffer);
uint8_t exoPal_getModel(char * read_buffer);
uint8_t exoPal_getVendor(char * read_buffer);
uint8_t exoPal_getUuid(char * read_buffer);
uint8_t exoPal_tcpSocketClose();
uint8_t exoPal_tcpSocketOpen();
uint8_t exoPal_socketRead( char * buffer, uint16_t bufSize, uint16_t * responseLength);
uint8_t exoPal_socketWrite( const char * buffer, uint16_t len);
int32_t exoPal_sendingComplete( );
uint8_t exoPal_itoa(int value, char* str, uint8_t radix);
int32_t exoPal_atoi(char* val);
uint16_t exoPal_strlen(const char *s);
uint8_t exoPal_memcpy(char * dst, const char * src, uint16_t length);
char* exoPal_strstr(const char *in, const char *str);
#endif
c function definitions at exosite_pal.c
#include "exosite_pal.h"
#include "simplelink.h"
#include <stdio.h>
#include <stdlib.h>
int32_t exoPal_sendingComplete()
{
return 0;
}
int32_t exoPal_atoi(char* val)
{
return atoi(val);
}