Batch build fail while standard build succeds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronny

    Batch build fail while standard build succeds

    I have a mixed solution -most of its projects are in C# and some are in
    C++?MFC.
    Problem is that when I compile the solution with batch build the MFC files
    end up wit compilation errors, but if I compile them personally everything
    is OK.
    One more note- the MFC project is independent on any other project.
    Can some advise please?
    Regards
    Ronny


  • PvdG42

    #2
    Re: Batch build fail while standard build succeds


    "Ronny" <ronny@giron.co mwrote in message
    news:OvB55QPPJH A.5012@TK2MSFTN GP03.phx.gbl...
    >I have a mixed solution -most of its projects are in C# and some are in
    C++?MFC.
    Problem is that when I compile the solution with batch build the MFC files
    end up wit compilation errors, but if I compile them personally everything
    is OK.
    One more note- the MFC project is independent on any other project.
    Can some advise please?
    Regards
    Ronny
    >
    >
    Interesting combination :-)
    I'll assume you've already considered and rejected the possibility of
    converting the MFC projects to C# or C++/CLI.
    Given that your issues are on the MFC side, I'd consider crossposting your
    question to:

    microsoft.publi c.vc.mfc

    and including details such as the pertinent sections of the batch files and
    quotes of the error messages received.

    Comment

    • Ashutosh Bhawasinka

      #3
      Re: Batch build fail while standard build succeds

      I work with a solution which contains over 85 projects and around half
      of them are in VC++ with MFC, some are in C# and there are few web
      service. We always build it from the command line for the releases. It
      never gave any problem.

      *Can you post the command line that you used for build?*

      PvdG42 wrote:
      >
      "Ronny" <ronny@giron.co mwrote in message
      news:OvB55QPPJH A.5012@TK2MSFTN GP03.phx.gbl...
      >I have a mixed solution -most of its projects are in C# and some are in
      >C++?MFC.
      >Problem is that when I compile the solution with batch build the MFC
      >files
      >end up wit compilation errors, but if I compile them personally
      >everything
      >is OK.
      >One more note- the MFC project is independent on any other project.
      >Can some advise please?
      >Regards
      >Ronny
      >>
      >>
      Interesting combination :-)
      I'll assume you've already considered and rejected the possibility of
      converting the MFC projects to C# or C++/CLI.
      Given that your issues are on the MFC side, I'd consider crossposting
      your question to:
      >
      microsoft.publi c.vc.mfc
      >
      and including details such as the pertinent sections of the batch
      files and quotes of the error messages received.

      Comment

      • Ronny

        #4
        Re: Batch build fail while standard build succeds

        Thanks Mr. Bhawasinka,
        Following is the attached command from the VS2005.
        Does that help?
        Regards
        Ronny

        /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "WPCAP" /D "HAVE_REMOT E" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp"Debug\DllPca p.pch" /Fo"Debug\\" /Fd"Debug\vc80.p db" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:pro mpt
        "Ashutosh Bhawasinka" <discussion@ash utosh.inwrote in message news:%23wj42WRP JHA.4480@TK2MSF TNGP05.phx.gbl. ..
        I work with a solution which contains over 85 projects and around half of them are in VC++ with MFC, some are in C# and there are few web service. We always build it from the command line for the releases. It never gave any problem.

        Can you post the command line that you used for build?

        PvdG42 wrote:

        "Ronny" <ronny@giron.co mwrote in message news:OvB55QPPJH A.5012@TK2MSFTN GP03.phx.gbl...

        I have a mixed solution -most of its projects are in C# and some are in
        C++?MFC.
        Problem is that when I compile the solution with batch build the MFC files
        end up wit compilation errors, but if I compile them personally everything
        is OK.
        One more note- the MFC project is independent on any other project.
        Can some advise please?
        Regards
        Ronny



        Interesting combination :-)
        I'll assume you've already considered and rejected the possibility of converting the MFC projects to C# or C++/CLI.
        Given that your issues are on the MFC side, I'd consider crossposting your question to:

        microsoft.publi c.vc.mfc

        and including details such as the pertinent sections of the batch files and quotes of the error messages received.



        Comment

        • Ashutosh Bhawasinka

          #5
          Re: Batch build fail while standard build succeds

          Why are you building your application like this??? You should use devenv
          command lines to build your entire solution.

          First of all, make sure you can build your full solutions at once (not
          individual projects) from the IDE in both Release and debug (solution
          configuration) mode. Then use *devenv *to build your entire solution,
          specifying your build configuration.

          NOTE: Don't get confused with solution configuration (release/debug) and
          project level configuration. For a solution configuration you can select
          which project level configuration to use.

          Thanks & Regards,
          Ashutosh

          Ronny wrote:
          Thanks Mr. Bhawasinka,
          Following is the attached command from the VS2005.
          Does that help?
          Regards
          Ronny
          >
          /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "WPCAP" /D
          "HAVE_REMOT E" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1
          /MTd /Yu"stdafx.h" /Fp"Debug\DllPca p.pch" /Fo"Debug\\"
          /Fd"Debug\vc80.p db" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:pro mpt
          >
          "Ashutosh Bhawasinka" <discussion@ash utosh.in
          <mailto:discuss ion@ashutosh.in >wrote in message
          news:%23wj42WRP JHA.4480@TK2MSF TNGP05.phx.gbl. ..
          I work with a solution which contains over 85 projects and around
          half of them are in VC++ with MFC, some are in C# and there are
          few web service. We always build it from the command line for the
          releases. It never gave any problem.
          >
          *Can you post the command line that you used for build?*
          >
          PvdG42 wrote:
          >>
          > "Ronny" <ronny@giron.co mwrote in message
          > news:OvB55QPPJH A.5012@TK2MSFTN GP03.phx.gbl...
          >> I have a mixed solution -most of its projects are in C# and some
          >> are in
          >> C++?MFC.
          >> Problem is that when I compile the solution with batch build the
          >> MFC files
          >> end up wit compilation errors, but if I compile them personally
          >> everything
          >> is OK.
          >> One more note- the MFC project is independent on any other project.
          >> Can some advise please?
          >> Regards
          >> Ronny
          >>>
          >>>
          > Interesting combination :-)
          > I'll assume you've already considered and rejected the
          > possibility of converting the MFC projects to C# or C++/CLI.
          > Given that your issues are on the MFC side, I'd consider
          > crossposting your question to:
          >>
          > microsoft.publi c.vc.mfc
          >>
          > and including details such as the pertinent sections of the batch
          > files and quotes of the error messages received.
          >

          Comment

          Working...