Hi, I am making a Game Engine which consists of 2 projects:
1. The editor project
2. The game loop project
In the editor project, there is a function called gameloop and it needs to be called from game loop project.
I included headers, libraries from SDL and 1. project. and i tried to build the 2. project and... unresolved external symbol gameloop function.
What Can I do?
Note: Both projects' target must be exe.
are you asking how to use the same function in both projects? Move the function to its own cpp file with a header and call it from both projects, included in both projects.
if the two programs are trying to share something, you need more, some sort of inter process communications...