Originally Posted by
hk_mp5kpdw
Well, for the code you've provided, I also get undefined function messages for receiveMsgSpeechRecognition and also RecogniseWordInSentence which would account for those errors. If the compiler doesn't understand what those two functions are then it will assume they return an int and then you get the errors because it can't convert an int to type struct sentencestruct. So, where are the prototypes for those two functions located?
Also, instances of variables should be restricted to the source files and not put into headers like you've done in global.h. Header files should generally contain function prototypes and extern statements and struct definitions while the source file(s) that #include those headers contain the actual instances of any variables.