You need to link against wcecompat.lib (see INSTALL.WCE).  This is where the missing functions live.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Manuel Gil Pérez
Sent: Saturday, 30 November 2002 4:50 AM
To: [EMAIL PROTECTED]
Subject: OpenSSL-0.9.7-beta4 for WinCE

Hi all,

I've an application to write/read Attribute Certificates with Visual C++ 6.0 and OpenSSL-0.9.6.

I would like to have this application for iPAQ with eMbedded Visual C++ 3.0 and OpenSSL-0.9.7 (for WinCE) but it doesn't work fine.

I've created a new empty project with 2 files:

ACasn1.cpp:
#include "ACasn1.h"
ASN1_SEQUENCE(ASN1algorithmIdentifier)=
{
        ASN1_SIMPLE(ASN1algorithmIdentifier,algorithm,ASN1_OBJECT),
        ASN1_OPT(ASN1algorithmIdentifier,parameters,ASN1_TYPE)
} ASN1_SEQUENCE_END(ASN1algorithmIdentifier);
IMPLEMENT_ASN1_FUNCTIONS(ASN1algorithmIdentifier)
ACasn1.h:
#ifndef _HEADER_ASN1_AC_
#define _HEADER_ASN1_AC_
#include <openssl/asn1.h>
#include <openssl/asn1t.h>

typedef struct ASN1algorithmIdentifier_st
{
        ASN1_OBJECT *algorithm;
        ASN1_TYPE *parameters;
} ASN1algorithmIdentifier;
DECLARE_ASN1_FUNCTIONS(ASN1algorithmIdentifier)
My problem is when I link the project (the compilation is good). I obtend the following errors:
libeay32.lib(err.obj) : error LNK2019: unresolved external symbol strerror referenced in function ERR_load_ERR_strings
libeay32.lib(stack.obj) : error LNK2019: unresolved external symbol bsearch referenced in function sk_find
libeay32.lib(cryptlib.obj) : error LNK2019: unresolved external symbol abort referenced in function OpenSSLDie
libeay32.lib(mem_dbg.obj) : error LNK2019: unresolved external symbol time referenced in function CRYPTO_dbg_malloc
libeay32.lib(mem_dbg.obj) : error LNK2019: unresolved external symbol localtime referenced in function print_leak_LHASH_DOALL_ARG
libeay32.lib(bss_file.obj) : error LNK2019: unresolved external symbol errno referenced in function BIO_new_file
Can anyone help me?? Is OpenSSL for WinCE complete or yet there are classes to include??

Thanks and regards...

  Manuel Gil Pérez - Proyecto MIMICS II
  Facultad de Informática
  Universidad de Murcia (Spain) Tfo: +34 968364640

Reply via email to