Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: Keil C99 & C++ mix

$
0
0
Hello, I have a base project that uses C99. (compiler option --c99) Basically c99 was used so that an aggregate type could be initialized with non-constant data as such: #define WRITE_OP_CODE (34) void test_fn(unsigned char param1, unsigned char param2) { unsigned char writebuff[3] = {WRITE_OP_CODE, param1, param2}; // no error on one compiler // and a "expression must have a constant value" error on another ... } The problem is I am now mixing

Viewing all articles
Browse latest Browse all 3049

Trending Articles