Daily Dairy ~ Six Weeks Training-June 2013

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s