Archived

This forum has been archived. Please start a new discussion on GitHub.

compile problem with Visual C++ 6.0

When I compile Ice 1.5.1 with Microsoft Visual C++ 6.0, I meet this problem:


Configuration: Freeze - Win32 Release
Performing Custom Build Step on ..\..\slice\Freeze\Exception.ice
Performing Custom Build Step on ..\..\slice\Freeze\DB.ice
Performing Custom Build Step on ..\..\slice\Freeze\EvictorStorage.ice
Performing Custom Build Step on ..\..\slice\Freeze\ConnectionF.ice
Performing Custom Build Step on ..\..\slice\Freeze\EvictorF.ice
Performing Custom Build Step on ..\..\slice\Freeze\Transaction.ice
Performing Custom Build Step on ..\..\slice\Freeze\Connection.ice
Performing Custom Build Step on ..\..\slice\Freeze\Evictor.ice
Compiling...
DB.cpp
Exception.cpp
Connection.cpp
ConnectionF.cpp
Transaction.cpp
Evictor.cpp
ObjectStore.cpp
EvictorI.cpp
EvictorIteratorI.cpp
Util.cpp
Index.cpp
IndexI.cpp
MapI.cpp
ConnectionI.cpp
TransactionHolder.cpp
TransactionI.cpp
SharedDb.cpp
EvictorStorage.cpp
SharedDbEnv.cpp
Generating Code...
Linking...
Creating library Release/freeze.lib and object Release/freeze.exp
SharedDb.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Db::set_error_stream(class _STL::basic_ostream<char,class _STL::char_traits<char> > *)" (?set_error_stream@Db@
@Z)
SharedDb.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Db::verify(char const *,char const *,class _STL::basic_ostream<char,class _STL::char_traits<char> > *,unsigned int)" (?verify@Db@@UAEHPBD0PAV?$basic_ostream@DV?
@_STL@@I@Z)
SharedDbEnv.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DbEnv::set_error_stream(class _STL::basic_ostream<char,class _STL::char_traits<char> > *)" (?set_error_stream@DbEnv@@UAEXPAV?$basic_ostream@DV?$char_traits@
@Z)
Release/freeze15.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

minimal - 4 error(s), 0 warning(s)

I have update VC6 to sp5, and my stlport version is 4.6.2
bzip2 1.0.2
db-4.2.52
precompiled Win32OpenSSL-v0.9.7e.exe

Comments

  • mes
    mes California
    Welcome to the forum!

    I suspect this error occurs because BerkeleyDB was not compiled with STLport. If that is the case, you need to rebuild BerkeleyDB with the STLport include directory configured in MSVC before the Microsoft include directories. See INSTALL.WINDOWS for more information.

    Take care,
    - Mark
  • problem solved, thank you

    problem solved, thank you
  • Re: compile problem with Visual C++ 6.0

    I meet another problem when compile Ice1.5.1 with msvc6.0

    "error: Thread suport not enabled"

    what can I do ?
    help me !
  • bernard
    bernard Jupiter, FL
    This looks like a problem with your pre-compiled OpenSSL ... maybe you should build it as well!

    Cheers,
    Bernard
  • thank you !