I'm not that big an expert on make syntax. All I can say is: I've built 
crypto++ 5.6.2 on Mac OS X v10.9 under GCC-4.8 and 4.8.2 from macports, and for 
successful compilation & reasonable AES performance the CXXFLAGS must somehow 
include those flags I listed. I also added configurable .dylib vs .so, and 
-dynamiclib flag for the shared library. I can post my edited makefile...

Sent from my iPad

> On Dec 13, 2013, at 7:52, Tim Burgess <[email protected]> wrote:
> 
> OK, here's the output:
>  
> macbook_pro:cryptopp tim$ make VERBOSE=1
> c++ -DNDEBUG -g -O2 -march=native -DCRYPTOPP_DISABLE_ASM -pipe -c
>  
> 
> I'm looking at the code in the make file:
>  
> ifneq ($(GCC42_OR_LATER),0) 
> ifeq ($(IS_DARWIN),1) 
> CXXFLAGS += -arch x86_64 -msse2 -mssse3 -msse4 -msse4.2 -maes -mpclmul
> else
> CXXFLAGS += -march=native
> endif
> endif
>  
> 
> and surely the first line is in the wrong sense (not equal), or have I placed 
> the edits in the wrong place?
>  
> 
> Cheers.
>  
> Tim
>  
> 
>  
> 
>  
>  
>  
>  
> 
>> On Friday, 6 December 2013 16:21:49 UTC, 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?
>>  
>> Many thanks in advance.
>>  
>> Tim
> 
> -- 
> -- 
> You received this message because you are subscribed to the "Crypto++ Users" 
> Google Group.
> To unsubscribe, send an email to [email protected].
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to