2 Discussion / Question Topics
Remove Filter Hi, why would this not work? (example) [CODE] fileA.h: // declare the function void methodA(); fileA.cpp: // define the function void methodA(){}; fileX.cpp: include "fileA.h" // call it methodA(); <--linker error, can't find the symbol[/CODE] All my headers have the #ifndef guard. Thanks! | |
I know, I know, this seems like an uber beginners question and most likely is. I have had this error several times and always figured it out myself, but this time it won't. GetUserData() returns a void* [code] #ifndef BLABLA_H #define BLABLA_H #include "GameEntity.h" //class declaration left out for simplicity … |