RE: Minimal SFL Program

"Leonberger, Pierce" <[email protected]>
Newsgroups gmane.ietf.sfl
Message-ID <33BD629222C0D211B6DB0060085ACF316BE21F@WFHQEX03>
You are most likely missing the following preprocessor definitions:

VDADER_RULES,SNACC_DEEP_COPY

At a minimum you'll need to link to:

libsmd.lib and snaccDLLd.lib (assuming debug build)

Our debug libraries link to the Debug Multithreaded DLL runtime library. Our
release libraries link to the Multithreaded DLL runtime library.  You'll
need to link your test program to the appropriate runtime library.

-Pierce

-----Original Message-----
From: MCMAINS,ALEX (HP-Boise,ex1) [mailto:[email protected]]
Sent: Wednesday, November 10, 1999 6:56 PM
To: '[email protected]'
Subject: 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 ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.