On Friday, December 6, 2013 11:21:49 AM UTC-5, Tim Burgess wrote: > > Hi, > > I downloaded the latest build using SVN then got the following output when > I attempted a build: > > > macbook_pro:cryptopp tim$ make static > > c++ -DNDEBUG -g -O2 -arch x86_64 -arch i386 -DCRYPTOPP_DISABLE_ASM -pipe > -c 3way.cpp > > In file included from /opt/local/include/gcc48/c++/bits/stl_algo.h:59:0, > > from /opt/local/include/gcc48/c++/algorithm:62, > > from stdcpp.h:18, > > from cryptlib.h:83, > > from seckey.h:8, > > from 3way.h:7, > > from 3way.cpp:5: > > /opt/local/include/gcc48/c++/cstdlib:178:10: error: expected > unqualified-id before '__int128' > > inline __int128 > > ^ > > make: *** [3way.o] Error 1 > > GCC4.8.1 is my default c/c++ compiler and lives in /opt/local (I installed > it from MacPorts). I'm fairly new to developing on the Mac, so can anybody > please advise me of what I might try to build the library? >
-arch i386 is the problem. See http://stackoverflow.com/questions/13148463/compiling-32bit-binary-expected-unqualified-id-before-int128. Open GNUMakefile and scroll down to around line 50. Find: ifneq ($(GCC42_OR_LATER),0) ifeq ($(IS_DARWIN),1) CXXFLAGS += -arch x86_64 -arch i386 else CXXFLAGS += -march=native endif endif And change to: ifneq ($(GCC42_OR_LATER),0) ifeq ($(IS_DARWIN),1) CXXFLAGS += -arch x86_64 else CXXFLAGS += -march=native endif endif Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.