Archived

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

Visual Studio Express 2005 C++ compiler error

Hello,

I tried to compile the c++ demo "demo" from the library ICE 3.2.0 with Visual C++ Express 2005 but I get the error "windows.h" not found. MFC and windows.h are not delivered with Visual Studio Express 2005 C++, but the homepage of ICE says the library can be used with this compiler version.

Can anyone help me?

Thanks,

Andreas.

Comments

  • bernard
    bernard Jupiter, FL
    Hi Andreas,

    You need to install the Windows Platform SDK; this is described in the README.txt in the Ice 3.2.0 binary distribution:

    Setting up Visual C++ 2005 Express Edition

    Visual C++ 2005 Express is available for download from:

    Visual Studio Express: Visual C++ - Easy to Use

    In addition to the steps listed above for setting up Visual Studio
    2005, users of Visual C++ 2005 Express Edition must also follow the
    instructions at the link below for installing and configuring the
    Platform SDK:

    Visual Studio Express: Using Visual C++ 2005 Express with the Microsoft Platform SDK

    Best regards,
    Bernard
  • compilation errors after installing and configuring the platform SDK

    Hello,
    after installing and configuring the PlatformSDK I get the following error:

    1>LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
    5>LINK : fatal error LNK1104: cannot open file 'mfc42ud.lib'
    17>
    Build started: Project: procS, Configuration: Debug Win32
    17>Performing Custom Build Step
    17>Der Befehl "proc" ist entweder falsch geschrieben oder
    17>konnte nicht gefunden werden.
    17>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    16>
    Build started: Project: occiS, Configuration: Debug Win32
    16>Der Befehl "ott" ist entweder falsch geschrieben oder
    16>konnte nicht gefunden werden.

    Translation:
    The command "proc" is written wrong or can't be found.
    The command "ott" is written wrong or can't be found.

    The libs mfc42*.lib are not in the library directory of the platform sdk, only in IA64 and AMD64 directory.

    What can I do?

    Questions:
    Why do you need MFC, is it not possible to use the library without MFC?
    What are the dependencies to MFC?

    Thanks for the help,
    Andreas.
  • matthew
    matthew NL, Canada
    MFC is required for two of the Ice demos demo/Ice/MFC and demo/IcePatch2/MFC. Since MFC isn't supported supported with VC express you should ignore the errors. Ice itself as no dependency on MFC.
  • Visual Studio Express 2005 C++ compiler errors (missing command line tools)

    Hello,

    I removed the mfc* projects from the solution. Now I get the following errors, because of missing tools configured in a custom build step (ott and proc):

    Build started: Project: occiS, Configuration: Debug Win32
    Performing Custom Build Step
    Der Befehl "ott" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.
    Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    occiS - 1 error(s), 0 warning(s)
    Build started: Project: occiS, Configuration: Release Win32
    Performing Custom Build Step
    Der Befehl "ott" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.
    Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    occiS - 1 error(s), 0 warning(s)
    Build started: Project: procS, Configuration: Debug Win32
    Performing Custom Build Step
    Der Befehl "proc" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.
    Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    procS - 1 error(s), 0 warning(s)
    Build started: Project: procS, Configuration: Release Win32
    Performing Custom Build Step
    Der Befehl "proc" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.
    Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    procS - 1 error(s), 0 warning(s)

    This is because of a command line entry
    ott userid=scott/tiger@orcl code=cpp hfile=$(InputName).h cppfile=$(InputName).cpp mapfile=$(InputName)Map.cpp intype=$(InputPath) outtype=$(InputName)Out.typ attraccess=private

    for the file DBTypes.typ in the project occiS and

    proc threads=yes parse=none lines=yes code=cpp cpp_suffix=cpp close_on_commit=yes $(InputPath)

    for the file CurrentSQLContext.pc and the other *.pc files in the project procS.

    There are no files called ott or proc in the ICE-3.2.0 directory.

    Best regards,
    Andreas
  • dwayne
    dwayne St. John's, Newfoundland
    These demos show how to integrate Ice with Oracle, and thus require Oracle to be installed in order to build. You can ignore these errors if you do not have Oracle, only these demos depend on it, not the Ice runtime. Alternately if you choose the "all" target in the IDE and do "build all" instead of "build solution", then compilation of these demos is skipped.
  • Compilation succeeded

    O.k. I removed them from the project and now I can compile with no errors,

    Thanks,
    Andreas