using xcode 6 or 7 on os x yosemite (fully patched), have line @ file scope:
static const vector<uint8_t>addresses = vector<uint8_t>({0x10, 0x12, 0x73});
it compiles , executes fine part of cpp file. when create makefile , try build, 'error: expected expression' pointing @ left brace. i've played around various syntax forms, , nothing works although errors change. i've tried both g++ , clang compiler, no effect.
can please suggest why compiles , runs xcode, not simple make? better yet, syntax i'm using that's not should be?
i've tried various language dialects compiler options, otherwise makefile purely using defaults.
Comments
Post a Comment