Archived

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

Microsoft VC compiler error

I try to compile a slice2cpp generated file with my ms C compiler included into MS.NET 2003. I use ICE 2.0 now.

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

Channel.cpp
C:\BIN\ICE\include\IceUtil\Config.h(93) : fatal error C1189: #error : "Only multi-threaded DLL libraries can be us
ed with Ice!"

What is the problem, and what is the solution?

Thanx in advance

aroan

Comments

  • bernard
    bernard Jupiter, FL
    You need to compile your C++ code with /MDd (when linking with the *d.lib Ice libraries) or /MD (when linking with the "release" Ice libraries).

    Cheers,
    Bernard
  • Ahh. That works. Thx.
    But now I got another error message:

    Setting environment for using Microsoft Visual Studio .NET 2003 tools.
    (If you have another version of Visual Studio or Visual C++ installed and wish
    to use its tools from the command line, run vcvars32.bat for that version.)
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
    Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

    Channel.cpp
    C:\BIN\ICE\include\IceUtil\Config.h(96) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

    I have tried to find that header file, but it seems nowhere. Not in the .NET directory, and not in the ICE include directory.... Or maybe it is my fault not to install all the VC things on my DotNET?

    aroan
  • bernard
    bernard Jupiter, FL
    It's installed in C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include.

    Maybe there is something wrong with your VS2003 installation, or with your INCLUDE environment variable.

    Cheers,
    Bernard