gcc compile error

View: New views
2 Messages — Rating Filter:   Alert me  

gcc compile error

by neblinc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using 5.4 version with gcc 4.3.3 on ubuntu. I have the build essentials package. Below is the error I see:

g++ -g -msse2 -pipe -c 3way.cpp
In file included from seckey.h:9,
                 from 3way.h:7,
                 from 3way.cpp:5:
misc.h: In function ‘void CryptoPP::memcpy_s(void*, size_t, const void*, size_t)’:
misc.h:128: error: ‘memcpy’ was not declared in this scope
misc.h: In function ‘void CryptoPP::memmove_s(void*, size_t, const void*, size_t)’:
misc.h:135: error: ‘memmove’ was not declared in this scope
misc.h: In function ‘void CryptoPP::GetUserKey(CryptoPP::ByteOrder, T*, size_t, const byte*, size_t)’:
misc.h:636: error: there are no arguments to ‘memset’ that depend on a template parameter, so a declaration of ‘memset’ must be available
misc.h:636: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make: *** [3way.o] Error 1


Am I missing anythings obvious ? ( I can modify code to compile - but, the site says no modifications required for gcc with 5.4)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---


Re: gcc compile error

by Jens Peter Secher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


2009/8/20 c y <neblinc1@...>:
> I'm using 5.4 version with gcc 4.3.3 on ubuntu. I have the build essentials
> package. Below is the error I see:
[...]
> Am I missing anythings obvious ? ( I can modify code to compile - but, the
> site says no modifications required for gcc with 5.4)

I do not remember the exact mismatches between various versions of GCC
and Crypto++, but why do you not just do an
"aptitude install libcrypto++-dev" ?

Cheers,
--
                                                    Jens Peter Secher.
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---