Loki-Astari / ThorsMongo

C++ MongoDB API and BSON/JSON Serialization library
GNU General Public License v3.0
316 stars 72 forks source link

MakeSimple fails #5

Closed acidtonic closed 10 years ago

acidtonic commented 10 years ago

My compiler does not support the "-Wno-c++11-extensions" flag. Upon removing it I get errors pertaining to C++11 support missing.

So I edited line 5 of MakeSimple from this to this....

CXXFLAGS += -Wno-c++11-extensions

to

CXXFLAGS += -std=c++0x

now make -f MakeSimple works. Figured I'd share the issue.... Below the build output is my system details.

$ make -f MakeSimple yacc -o Json/ParserShiftReduce.tab.cpp -d Json/ParserShiftReduce.y g++ -c Json/ParserRecursive.cpp -o Json/ParserRecursive.o -I. -Ibuild/include -Ibuild/include3rd -Wno-c++11-extensions In file included from Json/ParserInterface.h:5:0, from Json/ParserRecursive.h:5, from Json/ParserRecursive.cpp:3: Json/JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’ Json/JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’ Json/JsonDom.h:51:46: error: wrong number of template arguments (1, should be 2) /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_pair.h:87:12: error: provided for ‘template<class _T1, class _T2> struct std::pair’ Json/JsonDom.h:51:47: error: expected unqualified-id before ‘,’ token Json/JsonDom.h:51:63: error: expected initializer before ‘<’ token Json/JsonDom.h:120:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type Json/JsonDom.h:121:35: error: expected ‘)’ before ‘<’ token Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::print(std::ostream&) const’: Json/JsonDom.h:123:75: error: ‘value’ was not declared in this scope Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::setValue(std::string&) const’: Json/JsonDom.h:125:70: error: ‘value’ was not declared in this scope Json/JsonDom.h: At global scope: Json/JsonDom.h:129:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type Json/JsonDom.h:130:35: error: expected ‘)’ before ‘<’ token Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::print(std::ostream&) const’: Json/JsonDom.h:132:68: error: ‘value’ was not declared in this scope Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(long int&) const’: Json/JsonDom.h:134:74: error: ‘value’ was not declared in this scope Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(double&) const’: Json/JsonDom.h:135:74: error: ‘value’ was not declared in this scope Json/JsonDom.h: At global scope: Json/JsonDom.h:157:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type Json/JsonDom.h:158:32: error: expected ‘)’ before ‘<’ token Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonMapItem::print(std::ostream&) const’: Json/JsonDom.h:160:68: error: ‘value’ was not declared in this scope Json/JsonDom.h: At global scope: Json/JsonDom.h:165:5: error: ‘uniqueptr’ in namespace ‘std’ does not name a type Json/JsonDom.h:166:34: error: expected ‘)’ before ‘<’ token Json/JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonArrayItem::print(std::ostream&) const’: Json/JsonDom.h:168:68: error: ‘value’ was not declared in this scope In file included from Json/ParserRecursive.h:5:0, from Json/ParserRecursive.cpp:3: Json/ParserInterface.h: At global scope: Json/ParserInterface.h:55:39: error: ‘mapCreate’ declared as a ‘virtual’ field Json/ParserInterface.h:55:29: error: expected ‘;’ at end of member declaration Json/ParserInterface.h:55:39: error: declaration of ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate’ Json/ParserInterface.h:54:29: error: conflicts with previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate()’ Json/ParserInterface.h:55:51: error: expected ‘)’ before ‘’ token Json/ParserInterface.h:56:53: error: ‘JsonMapValue’ has not been declared Json/ParserInterface.h:57:13: error: ‘JsonMapValue’ does not name a type In file included from Json/ParserRecursive.h:5:0, from Json/ParserRecursive.cpp:3: Json/ParserInterface.h:84:39: error: ‘mapCreate’ declared as a ‘virtual’ field Json/ParserInterface.h:84:29: error: expected ‘;’ at end of member declaration Json/ParserInterface.h:84:39: error: declaration of ‘ThorsAnvil::Json::JsonMap ThorsAnvil::Json::ParseLogInterface::mapCreate’ Json/ParserInterface.h:83:29: error: conflicts with previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParseLogInterface::mapCreate()’ Json/ParserInterface.h:84:51: error: expected ‘)’ before ‘’ token Json/ParserInterface.h:85:49: error: ‘JsonMapValue’ has not been declared Json/ParserInterface.h:86:13: error: ‘JsonMapValue’ does not name a type Json/ParserInterface.h:113:39: error: ‘mapCreate’ declared as a ‘virtual’ field Json/ParserInterface.h:113:29: error: expected ‘;’ at end of member declaration Json/ParserInterface.h:113:39: error: declaration of ‘ThorsAnvil::Json::JsonMap ThorsAnvil::Json::ParserCleanInterface::mapCreate’ Json/ParserInterface.h:112:29: error: conflicts with previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapCreate()’ Json/ParserInterface.h:113:51: error: expected ‘)’ before ‘’ token Json/ParserInterface.h:114:53: error: ‘JsonMapValue’ has not been declared Json/ParserInterface.h:115:13: error: ‘JsonMapValue’ does not name a type Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap ThorsAnvil::Json::ParserCleanInterface::mapAppend(ThorsAnvil::Json::JsonMap, int_)’: Json/ParserInterface.h:114:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:114:99: error: ‘JsonMapValue’ was not declared in this scope Json/ParserInterface.h:114:121: error: ‘aval’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserCleanInterface::arrayAppend(ThorsAnvil::Json::JsonArray, ThorsAnvil::Json::JsonValue_)’: Json/ParserInterface.h:121:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:121:108: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:121:118: error: ‘aarr’ was not declared in this scope Json/ParserInterface.h: At global scope: Json/ParserInterface.h:137:39: error: ‘mapCreate’ declared as a ‘virtual’ field Json/ParserInterface.h:137:29: error: expected ‘;’ at end of member declaration Json/ParserInterface.h:137:39: error: declaration of ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate’ Json/ParserInterface.h:136:29: error: conflicts with previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate()’ Json/ParserInterface.h:137:51: error: expected ‘)’ before ‘’ token Json/ParserInterface.h:138:53: error: ‘JsonMapValue’ has not been declared Json/ParserInterface.h:139:13: error: ‘JsonMapValue’ does not name a type Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap ThorsAnvil::Json::ParserDomInterface::mapAppend(ThorsAnvil::Json::JsonMap, int_)’: Json/ParserInterface.h:138:83: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserInterface.h:138:99: error: ‘JsonMapValue’ was not declared in this scope Json/ParserInterface.h:138:120: error: ‘aval’ was not declared in this scope Json/ParserInterface.h:138:122: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:138:145: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:138:155: error: ‘amap’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserDomInterface::arrayCreate(ThorsAnvil::Json::JsonValue)’: Json/ParserInterface.h:145:83: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserInterface.h:145:108: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:145:119: error: ‘aval’ was not declared in this scope Json/ParserInterface.h:145:121: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:145:146: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:145:170: error: ‘aarr’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray ThorsAnvil::Json::ParserDomInterface::arrayAppend(ThorsAnvil::Json::JsonArray, ThorsAnvil::Json::JsonValue)’: Json/ParserInterface.h:146:83: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserInterface.h:146:108: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:146:119: error: ‘aval’ was not declared in this scope Json/ParserInterface.h:146:121: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:146:146: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:146:158: error: ‘aarr’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::arrayCreateElement(ThorsAnvil::Json::JsonValue)’: Json/ParserInterface.h:148:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:148:108: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:148:119: error: ‘aval’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue ThorsAnvil::Json::ParserDomInterface::valueParseMap(ThorsAnvil::Json::JsonMap_)’: Json/ParserInterface.h:150:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:150:106: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:150:120: error: ‘amap’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue ThorsAnvil::Json::ParserDomInterface::valueParseArray(ThorsAnvil::Json::JsonArray_)’: Json/ParserInterface.h:151:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:151:108: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:151:120: error: ‘aarr’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue ThorsAnvil::Json::ParserDomInterface::valueParseString(std::string_)’: Json/ParserInterface.h:152:83: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserInterface.h:152:110: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:152:120: error: ‘astr’ was not declared in this scope Json/ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue ThorsAnvil::Json::ParserDomInterface::valueParseNumber(std::string_)’: Json/ParserInterface.h:153:83: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserInterface.h:153:110: error: expected primary-expression before ‘>’ token Json/ParserInterface.h:153:120: error: ‘anum’ was not declared in this scope In file included from Json/ParserRecursive.cpp:3:0: Json/ParserRecursive.h: At global scope: Json/ParserRecursive.h:21:42: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.h:21:52: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.h:22:49: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.h:22:59: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.h:23:51: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.h:23:61: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.h:24:40: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.h:24:50: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.h:25:42: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.h:25:52: error: expected ‘,’ or ‘...’ before ‘<’ token In file included from Json/ParserRecursive.cpp:4:0: Json/ParserShiftReduce.h:12:25: error: ‘ThorsAnvil::Json::JsonMapValue’ has not been declared In file included from Json/ParserShiftReduce.h:23:0, from Json/ParserRecursive.cpp:4: Json/ParserShiftReduce.y:33:5: error: ‘JsonMapValue’ does not name a type Json/ParserRecursive.cpp:13:51: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.cpp:13:61: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::JsonValueParse(int, int)’: Json/ParserRecursive.cpp:18:61: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:18:84: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:18:91: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:18:91: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp:21:65: error: ‘value’ was not declared in this scope Json/ParserRecursive.cpp:26:61: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:26:86: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:26:91: error: ‘array’ was not declared in this scope Json/ParserRecursive.cpp:29:65: error: ‘value’ was not declared in this scope Json/ParserRecursive.cpp:33:57: error: ‘value’ was not declared in this scope Json/ParserRecursive.cpp: At global scope: Json/ParserRecursive.cpp:42:58: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.cpp:42:68: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::JsonMapValueListParse(int, int)’: Json/ParserRecursive.cpp:46:9: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:46:36: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:46:67: error: ‘key’ was not declared in this scope Json/ParserRecursive.cpp:50:13: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:50:38: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:50:43: error: ‘value’ was not declared in this scope Json/ParserRecursive.cpp:53:17: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:53:33: error: ‘JsonMapValue’ was not declared in this scope Json/ParserRecursive.cpp:53:61: error: ‘struct ThorsAnvil::Json::ParserInterface’ has no member named ‘mapCreateElement’ Json/ParserRecursive.cpp:53:109: error: ‘mapValue’ was not declared in this scope Json/ParserRecursive.cpp:54:21: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:54:21: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp:66:71: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:66:71: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp: At global scope: Json/ParserRecursive.cpp:75:60: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.cpp:75:70: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::JsonArrayValueListParse(int, int)’: Json/ParserRecursive.cpp:77:5: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:77:30: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:77:35: error: ‘value’ was not declared in this scope Json/ParserRecursive.cpp:81:13: error: ‘array’ was not declared in this scope Json/ParserRecursive.cpp:93:25: error: ‘array’ was not declared in this scope Json/ParserRecursive.cpp: At global scope: Json/ParserRecursive.cpp:99:49: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.cpp:99:59: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::JsonMapParse(int, int)’: Json/ParserRecursive.cpp:105:9: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:105:9: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp:110:45: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:110:45: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp: At global scope: Json/ParserRecursive.cpp:115:51: error: ‘std::unique_ptr’ has not been declared Json/ParserRecursive.cpp:115:61: error: expected ‘,’ or ‘...’ before ‘<’ token Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::JsonArrayParse(int, int)’: Json/ParserRecursive.cpp:121:9: error: ‘array’ was not declared in this scope Json/ParserRecursive.cpp:126:47: error: ‘array’ was not declared in this scope Json/ParserRecursive.cpp: In member function ‘int ThorsAnvil::Json::ParserRecursive::parseJosnObject(int)’: Json/ParserRecursive.cpp:134:5: error: ‘unique_ptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:134:28: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:134:35: error: ‘map’ was not declared in this scope Json/ParserRecursive.cpp:134:35: note: suggested alternative: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_map.h:88:11: note: ‘std::map’ Json/ParserRecursive.cpp:135:5: error: ‘uniqueptr’ is not a member of ‘std’ Json/ParserRecursive.cpp:135:30: error: expected primary-expression before ‘>’ token Json/ParserRecursive.cpp:135:35: error: ‘array’ was not declared in this scope At global scope: cc1plus: warning: unrecognized command line option "-Wno-c++11-extensions" [enabled by default] make: ** [Json/ParserRecursive.o] Error 1

========== FIXED OUTPUT ============

make -f MakeSimple g++ -c Json/ParserRecursive.cpp -o Json/ParserRecursive.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/ParserShiftReduce.tab.cpp -o Json/ParserShiftReduce.tab.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/ScannerSax.cpp -o Json/ScannerSax.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/LexerJson.cpp -o Json/LexerJson.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/JsonUtil.cpp -o Json/JsonUtil.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/ScannerDom.cpp -o Json/ScannerDom.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Json/ParserInterface.cpp -o Json/ParserInterface.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x g++ -c Serialize/JsonSerializer.cpp -o Serialize/JsonSerializer.o -I. -Ibuild/include -Ibuild/include3rd -std=c++0x ar rv serialize.a Json/ParserRecursive.o Json/ParserShiftReduce.tab.o Json/ScannerSax.o Json/LexerJson.o Json/JsonUtil.o Json/ScannerDom.o Json/ParserInterface.o Serialize/JsonSerializer.o ar: creating serialize.a a - Json/ParserRecursive.o a - Json/ParserShiftReduce.tab.o a - Json/ScannerSax.o a - Json/LexerJson.o a - Json/JsonUtil.o a - Json/ScannerDom.o a - Json/ParserInterface.o a - Serialize/JsonSerializer.o

========== SYSTEM DETAILS =========== $ make -v GNU Make 3.82 Built for x86_64-pc-linux-gnu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

$ gcc -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-cloog --without-ppl --disable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-esp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --disable-libquadmath --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 4.6.3 p1.13, pie-0.5.2' Thread model: posix gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.13, pie-0.5.2)

$ uname -a Linux SilkRouteLaptop 3.8.13-gentoo #6 SMP Mon Dec 9 16:55:07 EST 2013 x86_64 AMD A10-4600M APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux

Loki-Astari commented 10 years ago

I looked.

The problem is that the SimpleMake is designed solely for a quick start. It is not supposed to cross platform. If I try and fix for one thing something else will pop up and fixing that will lead to something else. etc. In the end I would need to build a big complex Makefile. This has already been done with ThorBuilder (the build system I use).

To have a cross platform build you should follow the instructions to get the full Makefile (ThorBuilder).

 # Get the repository 
 git clone git@github.com:Loki-Astari/ThorsSerializer.git

 # Set up the build system (it makes sure all tools including unit tests libraries are installed)
 # It also does a `git submodule init` and `git submodule update` 
 cd ThorsSerializer/third
 ./setup
 cd ..

 # Now the normal Makefiles will build as expected.
 make