36 Reputation Points
Ranked #630
- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #37.0K
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 … |