> nbtheory.cpp(1026,90): error E2268: E2268 Call to undefined function 'log'
> nbtheory.cpp(1033,90): error E2268: E2268 Call to undefined function
'log'
and can be tricky. What I have found is, as soon as we
change to std::log, then another compiler breaks. In fact, we were trying
to use std::log but early Borland compilers had trouble with it.
I'm thinking maybe we need something like:
#ifdef __BORLANDC__
using std::log
#endif
> [bcc32 Error] bench1.cpp(64): E2268 Call to undefined function 'log'
> [bcc32 Error] bench1.cpp(100): E2268 Call to undefined function 'log'
These sound like we are missing an include. Looking at bench1.cpp
(https://github.com/weidai11/cryptopp/blob/master/bench1.cpp) we _don't_
include our "stdcpp.h" or or .
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
'undefined', needs lvalue of type
'ObjectFactoryRegistry'
What I've found with this one is, inlining make s_registry go missing.
Or sometimes, there are different copies of s_registry under the As-If
rule. One copy will register some algorithms, the other copy will register
other algorithms, and you will get an occasional exception about "no object
factory found".
Usually I try to stop inlining like in
https://github.com/weidai11/cryptopp/blob/master/config.h#L648 .
Jeff
On Wednesday, October 11, 2017 at 3:04:18 AM UTC-4, Giuseppe Zagari wrote:
>
>
> nbtheory.cpp(1026,90): error E2268: E2268 Call to undefined function 'log'
> nbtheory.cpp(1033,90): error E2268: E2268 Call to undefined function 'log'
>
> fixed by addinb std::log
>
> [bcc32 Fatal Error] adhoc.cpp(1): F1009 Unable to open input file
> 'adhoc.cpp'
>
>fixed by excluding from the build
>
> finally I got the .lib
> [TLIB Warning] Warning: library was too large for page size, rebuilt with
> page size 1024
>
> But I got a lot of errors when I build the .exe
>
> [bcc32 Error] bench1.cpp(64): E2268 Call to undefined function 'log'
> [bcc32 Error] bench1.cpp(100): E2268 Call to undefined function 'log'
> [bcc32 Warning] bench1.cpp(407): W8012 Comparing signed and unsigned values
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type
> 'ObjectFactoryRegistry'
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type 'ObjectFactoryRegistry'
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type
> 'ObjectFactoryRegistry'
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type
> 'ObjectFactoryRegistry'
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type
> 'ObjectFactoryRegistry'
> [bcc32 Error] factory.h(104): E2040 Declaration terminated incorrectly
> [bcc32 Error] factory.h(105): E2451 Undefined symbol 's_registry'
> [bcc32 Error] factory.h(105): E2357 Reference initialized with
> 'undefined', needs lvalue of type 'ObjectFactoryRegistry'
>
>
--
--
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/d/optout.