Hey all,
I picked up GCC4 recently and I've really been enjoying it. Thanks to Mike and Rez for the resouce.
I've also been following along with the code and as I'm trying to recreate some of the things that are in it, I've run into a small header include problem that has also been a problem in previos projects.
In BaseGameLogic.h you access things that have been declared in the precompiled header and it's own includes, like StrongActorPtr or even just std::vector. However, you don't include it or anything that holds those definitions in the file anywhere, and yet there are no compile or IntelliSense errors. When I try to do the same, I get errors "'StrongActorPtr' is undefined". Similarly, in your interfaces.h you use AppMsg which has been delcared in the precompiled header, with no errors, even though you do not include it into the interfaces.h. When I do the same, I get errors "error C2061: syntax error : identifier 'AppMsg'". Oddly, I don't have any IntelliSense errors and the word AppMsg is blue as if it is recognized.
Can someone explain what exactly is going on in the computer when it comes to these header issues? I know that using an include is like copy/pasting all the code from that file to where the include statement is, but I feel like I'm missing some other key characteristics of includes.
Thanks.
I picked up GCC4 recently and I've really been enjoying it. Thanks to Mike and Rez for the resouce.
I've also been following along with the code and as I'm trying to recreate some of the things that are in it, I've run into a small header include problem that has also been a problem in previos projects.
In BaseGameLogic.h you access things that have been declared in the precompiled header and it's own includes, like StrongActorPtr or even just std::vector. However, you don't include it or anything that holds those definitions in the file anywhere, and yet there are no compile or IntelliSense errors. When I try to do the same, I get errors "'StrongActorPtr' is undefined". Similarly, in your interfaces.h you use AppMsg which has been delcared in the precompiled header, with no errors, even though you do not include it into the interfaces.h. When I do the same, I get errors "error C2061: syntax error : identifier 'AppMsg'". Oddly, I don't have any IntelliSense errors and the word AppMsg is blue as if it is recognized.
Can someone explain what exactly is going on in the computer when it comes to these header issues? I know that using an include is like copy/pasting all the code from that file to where the include statement is, but I feel like I'm missing some other key characteristics of includes.
Thanks.