pedro-vicente / lib_netsockets

C++ light wrapper for POSIX and Winsock sockets using TCP
Other
54 stars 26 forks source link

Hi Predo Unable to add files to my C program #2

Open carter3rix opened 5 years ago

carter3rix commented 5 years ago

Hello good day... Am programming a system using the arm cc compiler... Specifically programming in C.... Please how can i extends this in the c program so i can use with the sockets provided.... So that i can use the http for rest calls.. Thank you... Most of the programs ran as example `checkerweathersocket.c in this i inlucde

checkweathersocket.h in this i have

ifndef CHECKWEATHERSOCKET

define CHECKWEATHERSOCKET

ifdef __cplusplus

extern "C" {

endif

void someFunctionTobeInCfile(void);

ifdef __cplusplus

}

endif

endif`

pedro-vicente commented 5 years ago

the easiest thing is just make your C program a C++ program by compiling with g++

carter3rix commented 5 years ago

Thanks for your response... With your suggestion i would wish to if am compiling by myself but the program compiles with 'armcc' by default not even with gcc or.... then i could compile with g++ ... Any help thanks...