Joined: Mon Jan 15, 2018 2:27 pm Posts: 201
|
It finally works. It is still a mess but at least compiles and works. The problem was that you've completely mixed up .c and .h files. In short: In .h files you should declare functions and stuff. In .c files you should define functions. That means you should never put function bodies in .h file nor you should ever do #include "something.c" (unless you REALLY know what you're doing) or you'll get yourself into huge mess after a short while. There were also some preprocessor and symbol conflicts with my and your existing code. You should consider reading something about C (and general) coding practices and how preprocessing, compiling and linking processes work.
|
|