Magic of extern


After a long time and a great efforts, finally today I succeeded to solve the multiple definition error. It seems not a big thing, solving a compile time error should not be a very hard thing for a C++ programmer. But it was really a long lived error that cause us to learn a lot. This is all the magic of extern. While searching for this error a long ago, I found this feature of C++ and read about it, but I was not able to implement in my code. So I started finding some alternative solutions of the problem. But today, I again started reading about extern and grasp it thoroughly to use it in my code and finally I did it. It worked 🙂 Thank God. Today’s lesson was we should read things thoroughly before switching to next.
This is the link which help me to understand the magic of extern.
http://stackoverflow.com/questions/15841495/the-usage-of-extern-in-c


Learn C++ before witty Effective code