Original Post
hi, i've written a headerfile with common constants and functions most of my cpp files use. When I try to include it in more than 1 cpp file within my project I get the following error (I'm using devcpp): "multiple definition of 'myfunction(float)'" I think this can be prevented with precompiler directives, but I have no idea how to do this. Can it be done with #ifndef followed by a constant my header defines or are there better ways?