Results 1 to 7 of 7

Thread: Visual Studio Express 2005 C++ compiler error

  1. #1
    blonder is offline Registered User
    Name: A S
    Organization: privat
    Project: First evaluating purpose, later project.
    Join Date
    May 2007
    Posts
    4

    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.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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
    Bernard Normier
    ZeroC, Inc.

  3. #3
    blonder is offline Registered User
    Name: A S
    Organization: privat
    Project: First evaluating purpose, later project.
    Join Date
    May 2007
    Posts
    4

    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.
    Last edited by blonder; 05-21-2007 at 06:33 PM.

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    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.

  5. #5
    blonder is offline Registered User
    Name: A S
    Organization: privat
    Project: First evaluating purpose, later project.
    Join Date
    May 2007
    Posts
    4

    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

  6. #6
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    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.

  7. #7
    blonder is offline Registered User
    Name: A S
    Organization: privat
    Project: First evaluating purpose, later project.
    Join Date
    May 2007
    Posts
    4

    Compilation succeeded

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

    Thanks,
    Andreas

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Visual Studio 2003/2005 projects
    By ren-wei in forum Help Center
    Replies: 0
    Last Post: 11-29-2010, 01:52 AM
  2. compiler settings Visual Studio 2005
    By susannesch in forum Help Center
    Replies: 3
    Last Post: 07-02-2009, 10:18 AM
  3. Replies: 2
    Last Post: 06-29-2009, 09:00 AM
  4. Visual Studio 2008 Express and C#
    By tcorvin in forum Help Center
    Replies: 1
    Last Post: 03-27-2009, 04:36 PM
  5. Ice 3.0.1 & Visual Studio 2005 (Express edition)
    By albertods in forum Help Center
    Replies: 6
    Last Post: 05-19-2006, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •