I have a problem that I think is related to my IDE. I am using Codeblocks (13.12).
Here's my "set up":
main.c (includes 'int main()')
header.h (your typical header, includes prototypes)
test.c (a random file, includes custom-made functions.)
Here's the issue: All the functions works as intended, but when I compile my test.c I get an error (for each function) saying: "error: redefinition of ***"
This issue doesn't affect anything, but it's annoying. I'm wondering if it's possible to get rid of it somehow? Maybe I'm doing something wrong when I'm creating my prototypes?
Here's an example of what my functions and prototypes look like:
void func_showMenu(); //This is the prototype, in header.h
void func_showMenu(){
//This is the function, in test.c
}
Is there some setting in Code::Blocks that can fix this issue?