I'm working with Atmel Studio 6 and am having an issue with the C++ implementation. I defined a new project, selected the C++ option and added a new class which created the class files (.cpp and .h) as expected, but when I open the .h file the "class LED" line is highlighted (an error condition) and the error says is "unknown type class"
Any ideas on what might be wrong? I have no clue.
The 'unknown type class' suggests that the compiler took 'class' as a typename, what could suggest that it took your source code as a C
not C++
language.
This in turn suggests that maybe you mistook or mistyped the file extension and failed to set the name of file to .cpp
. In fact, you wrote that you named the file .ccp
- try correcting that first. (note the cCp versus cPp). It's quite common when you start writing in C++. Memoization hint: C++ -> CPP : the P stands for "+", "plus".
I'm working with Atmel Studio 6 and am having an issue with the C++ implementation. I defined a new project, selected the C++ option and added a new class which created the class files (.cpp and .h) as expected, but when I open the .h file the "class LED" line is highlighted (an error condition) and the error says is "unknown type class"
Any ideas on what might be wrong? I have no clue.
The 'unknown type class' suggests that the compiler took 'class' as a typename, what could suggest that it took your source code as a C
not C++
language.
This in turn suggests that maybe you mistook or mistyped the file extension and failed to set the name of file to .cpp
. In fact, you wrote that you named the file .ccp
- try correcting that first. (note the cCp versus cPp). It's quite common when you start writing in C++. Memoization hint: C++ -> CPP : the P stands for "+", "plus".
0 commentaires:
Enregistrer un commentaire