please wait
|
|
|
|
|
|
|
|
D:\wolf\Documents\teensy\demo_MinGW\map_link>make g++ main.cpp map.o -o a.exe main.cpp:4:38: error: in C++98 'A::km' must be initialized by constructor, not b y '{...}' A::KeyMap A::km = {{1, 'a'}, {2, 'b'}}; // compiles w/o const ^ main.cpp:4:38: warning: extended initializer lists only available with -std=c++1 1 or -std=gnu++11 [enabled by default] main.cpp:4:38: error: could not convert '{{1, 'a'}, {2, 'b'}}' from '<brace-encl osed initializer list>' to 'A::KeyMap {aka std::map<const int, const char>}' make: *** [a.exe] Error 1 |
|
|
D:\wolf\Documents\teensy\demo_MinGW>g++ -std=c++11 map.cpp D:\wolf\Documents\teensy\demo_MinGW>a a |
|
|
|
|
g++ main.cpp map.o -o a.exe
|
|