multiple definitions
Brought to you by:
macklin01
I tried using this to build larger classes in several IDEs and if you include it from a header, you receive an error regarding multiple definitions or the warning message statuses.
This is typically a result of assigning a value to a variable from within a header file.
I love this project and find it very useful, but it would be more useful for large projects if this issue was resolved.
Sorry about this, as well as the late response. (I wasn't monitoring the tickets.) :-/
Easiest fix is to include extra info in the headers:
ifndef EASYBMP
define EASYBMP
// everything that's in the header
endif
Such a change should deal with the multiple inclusions. Another would be to move the constants / declarations to the cpp file, and leave them in the header as extern. That's probably the most expedient fix.