Thursday, October 28, 2010

Nokia Carbide Errors x 650

I am shockingly new to Nokia development. Like, as in I started learning on Tuesday and today is Thursday new. My only experience with mobile development before was on Windows Mobile 6 and CE, which thanks to the brilliance that is .NET, was a piece of cake.

Nokia C++ (for Symbian S60, 3rd Edition, Feature Pack 2) is not. For starters, there's no strings. Just descriptors pointing to lots of things. And only once you get your head around this will any programming make sense. This website: http://descriptors.blogspot.com/ made everything make sense. Consider it the "Nokia C++ programming bible" if you will. At least the gospels according to descriptors.

Anyway, there I was programming some examples, when I got errors. A lot of them. 636 to be exact:

Errors such as:
declaration syntax error
(included from:
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32cmn.h:8
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32std.h:13
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32base.h:8
I spent hours and hours pulling my hair out fretting over these hundreds of errors! Why could these examples not compile! I DIDN'T CHANGE ANYTHING.

And then I solved it. It was embarassing. Are you ready?

I named my files with an extension .C. Not the .CPP which is the norm for C++. Once I changed to .CPP everything work fine.

This children, is why you must have cafienne before programming.

No comments:

Post a Comment