Hi,
I am trying to compile
#include <stdint.h>
int main() {
Motor motor;
motor.init();
uint16_t x = UINT16_C(0x22);
}
with ti-cgt-c2000_20.2.5.LTS/bin/cl2000
However, I can see they are defined in stdint.h.
Any reason this doesn't work?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am trying to compile
#include <stdint.h>
int main() {
Motor motor;
motor.init();
uint16_t x = UINT16_C(0x22);
}
with ti-cgt-c2000_20.2.5.LTS/bin/cl2000
However, I can see they are defined in stdint.h.
Any reason this doesn't work?
The function macro UINT16_C is defined in the standard header file cstdint, for compilers which support the C++11 standard. Unfortunately, the C28x compiler does not support C++11. It only support C++03.
Thanks and regards,
-George