Hi guys,
I've been having a lot of difficulty finding the solution to this specific error that I've been getting and I can't seem to find any good solutions floating around.
Basically, I'm creating my own string class. Here's the code:
In file included from Main.cpp:4:
CPPString.cpp: In constructor ‘CPPString::CPPString(unsigned char*)’:
CPPString.cpp:6: error: expected primary-expression before ‘unsigned’
make: *** [main] Error 1
The compiler finds the error at what is pictured above as line 3.
From what I have been able to find on other forums and from looking around, this error message seems to be very program-specific so I'm not sure how much everyone would be able to help, but I would appreciate any input!
^What...? Your class requires a globally defined variable??? That's...really bad design. Anyway, I'm not completely sure what the error is now, assuming it's still the same problem. Are you *sure* sPtr is declared?