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

Minimal SFL Program



Hi,

I work for HP, and I am tryng to compile a minimal program using the SFL.  I
am using Visual C++ 6.0 on NT 4.0.
The program that I am trying to compile looks like this:

#include "sm_api.h"

int main()
{
	CSM_MsgToEncrypt mte;

	return 0;
}

I get the following compile time errors:

Compiling...
test.cpp
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\asn-oid.h(92) : warning
C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\asn-octs.h(106) : warning
C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\print.h(42) : error
C2071: 'indentG' : illegal storage class
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\print.h(43) : error
C2071: 'stdIndentG' : illegal storage class
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\print.h(45) : error
C2487: 'Indent' : member of dll interface class may not be declared with dll
interface
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\print.h(47) : error
C2487: '<<' : member of dll interface class may not be declared with dll
interface
e:\downloads\sfl smime\smimer1.3\include\snacc\c++\print.h(47) : error
C2804: binary 'operator <<' has too many parameters
e:\program files\microsoft visual studio\vc98\include\malloc.h(36) : error
C2059: syntax error : 'string'
e:\program files\microsoft visual studio\vc98\include\malloc.h(36) : error
C2334: unexpected token(s) preceding '{'; skipping apparent function body
e:\downloads\sfl smime\smimer1.3\libcert\include\sm_x501ud.h(23) : error
C2071: 'ds' : illegal storage class
e:\downloads\sfl smime\smimer1.3\libcert\include\sm_x501ud.h(24) : error
C2071: 'module' : illegal storage class
...
e:\downloads\sfl smime\smimer1.3\libcert\include\sm_x411ub.h(62) : error
C2071: 'ub_pds_name_length' : illegal storage class
e:\downloads\sfl smime\smimer1.3\libcert\include\sm_x411ub.h(62) : fatal
error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

SFL Test.exe - 102 error(s), 2 warning(s)

Can you explain what I am doing wrong?  And maybe show an example of a
minimal program that will compile.

Thank you.

NOTE: I have not been able to compile auto_hi.exe due to linking errors I
get when compiling sm_free3DLL.  I'm really only interested in BSAFE anyway
at this point.

Alex McMains (alex_mcmains@xxxxxx)