Hi everyone :?
I know this is borderline "programming" stuff but since Codeblock has special ways it likes you to link and include I thought I'd post it here - after all, I'm following a tutorial more or less word for word so in theory it should compile just fine ("should" ha ha ha). So, yeah, I keep getting this error in the main:
Undefined reference to play(SDL_Surface*)
screenshot"Play" is a function that takes an SDL_Surface and draws stuff on it, in this case the default screen, but that's not important. Before anyone starts, I have indeed included "play.h" where the function is defined as:
#ifndef PLAY_H_INCLUDED
#define PLAY_H_INCLUDED
void play(SDL_Surface* screen);
// (...)
#endif
"play.c" is some 300 lines of code so I won't paste it in here. I made sure the files were indeed well included, as if I don't include "play.h" I get a different and altogether more familiar error:
'play' not defined in this scope
I'm pretty sure there's some option I haven't checked somewhere, but generally functions work fine without encouragement. What am I doing wrong?
William