Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Could you maybe give me an example on how to do this properly? I'm sure this sounds trivial to you but I hardly understand what you've said. Commented Jan 5, 2019 at 10:22
  • Thanks a lot :) I tried to declare and initialize it in myLib.cpp and forgot the extern-keyword in myLib.h. Commented Jan 5, 2019 at 10:47
  • 1
    you can use #pragma once instead of the old fashioned #ifndef _myLib_h_guard_ :p Commented Jan 5, 2019 at 10:54