bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: sha.cpp compiler warnings


From: Chad Yates
Subject: RE: sha.cpp compiler warnings
Date: Thu, 12 Dec 2002 14:43:09 -0800

(snip)
>    If you build the library with it the way it was originally, that
> is, with the warnings and all, and only SHA1Digest and SHA256Digest
> defined as CCXX_CLASS_EXPORT, does it work?
>
>    To find out, you can write a simple program that, for instance,
> provides the SHA256 hash of a file:
>
(snip)
>
> Does it work (never mind the exact result at the moment; does it
> compile and run)?
>
> Elizabeth
>

compiling the original library without our header mods, I get the three
warnings again of course, and a link error that the test program you
provided:

--------------------Configuration: digesttest - Win32
Debug--------------------
Compiling...
digesttest.cpp
e:\projects\c\commoncpp2\include\cc++\digest.h(414) : warning C4275: non
dll-interface class 'ost::SHA64DigestHelper' used as base for dll-interface
class 'ost::SHA1Digest'
        e:\projects\c\commoncpp2\include\cc++\digest.h(389) : see
declaration of 'SHA64DigestHelper'
e:\projects\c\commoncpp2\include\cc++\digest.h(432) : warning C4275: non
dll-interface class 'ost::SHA64DigestHelper' used as base for dll-interface
class 'ost::SHA256Digest'
        e:\projects\c\commoncpp2\include\cc++\digest.h(389) : see
declaration of 'SHA64DigestHelper'
e:\projects\c\commoncpp2\include\cc++\digest.h(432) : warning C4275: non
dll-interface class 'ost::SHAConstant' used as base for dll-interface class
'ost::SHA256Digest'
        e:\projects\c\commoncpp2\include\cc++\digest.h(328) : see
declaration of 'SHAConstant'
Linking...
digesttest.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall ost::SHADigest<unsigned __int64,64>::putDigest(unsigned char
const *,unsigned int)" (address@hidden@_K$0EA@@ost@@address@hidden)
Debug/digesttest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

digesttest.exe - 2 error(s), 3 warning(s)

looks like the unresolved external relates to one of the warnings generated
after we added SHA64DigestHelper and SHAConstant to the dll export.

..\include\cc++/digest.h(382) : warning C4275: non dll-interface class
'ost::SHADigest<unsigned __int64,64>' used as base for dll-interface class
'ost::SHA64DigestHelper'
        ..\include\cc++/digest.h(382) : see declaration of
'SHA64DigestHelper'

what's so special about SHADigest<unsigned __int64,64>

,Chad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]