none
Visual studio 2012 RC, x64

    Question

  • Hello,

    I installed Visual Studio 2012 ultimate RC and I want to compile boost in 64bits but I have only "vcvars32.bat" so I can't compile with x64 toolchain.

    There anything I'm missing ?

    Thanks,

    I'm sorry for my bad english.

    Friday, June 01, 2012 10:33 AM

Answers

  • I already tried repair on 2 PC (one with VS2012 RC French with iso, another with english version with web installer) and I have only vcvars32 on it.

    I find a solution, I edit vcvars32.bat, replaced some of "32" to "64" and "x86" to "amd64", rename it to vcvars64.bat, saved in "VC/bin/amd64" and it's work.

    Do you have the vcvars64.bat with the last version of Visual Studio ?



    • Edited by Nydhu Wednesday, June 06, 2012 2:32 PM
    • Marked as answer by Helen Zhao Monday, June 11, 2012 2:47 AM
    Wednesday, June 06, 2012 2:32 PM

All replies

  • Use vcvarsall.bat (in \vc dir) with an argument: x86, x86_arm or amd64
     
    Friday, June 01, 2012 4:22 PM
  • I already use vcvarsall.bat but I don't have any of "vcvars*.bat" except "vcvars32.bat" in bin (nothing in bin/amd64 or bin/x86_64) so vcvarsall.bat works only for 32bits...

    Output:

    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>vcvarsall.bat amd64
    The specified configuration type is missing.  The tools for theconfiguration might not be installed.


    Edit: I forgot to specify, I'm on windows 7 x64. I didn't have any problems with VS2012 Beta, it's only with VS2012 RC.

    • Edited by Nydhu Monday, June 04, 2012 7:11 PM
    Monday, June 04, 2012 7:08 PM
  • As the error message says, it seems that, the x64 tools have not been installed on your PC by VS2012 setup program.

    You should have a VC/Bin/amd64 folder.

    I do not remember if VS2012 setup asked me if I wanted to install x64 tools. Maybe it did and I answered yes. Try repair/reinstall VS2012...?

    • Proposed as answer by Helen Zhao Monday, June 11, 2012 2:48 AM
    Tuesday, June 05, 2012 11:17 PM
  • I already tried repair on 2 PC (one with VS2012 RC French with iso, another with english version with web installer) and I have only vcvars32 on it.

    I find a solution, I edit vcvars32.bat, replaced some of "32" to "64" and "x86" to "amd64", rename it to vcvars64.bat, saved in "VC/bin/amd64" and it's work.

    Do you have the vcvars64.bat with the last version of Visual Studio ?



    • Edited by Nydhu Wednesday, June 06, 2012 2:32 PM
    • Marked as answer by Helen Zhao Monday, June 11, 2012 2:47 AM
    Wednesday, June 06, 2012 2:32 PM
  • Do you have the vcvars64.bat with the last version of Visual Studio ?

    No.

    I guess MS doesn't want to provide a batch file for each build environment. You have to use vcvarsall.bat.

    Wednesday, June 06, 2012 2:55 PM
  • I had that after installing 2012 RC without uninstalling 11 beta first.

    Fixed by:

    • Uninstalling anything listed related for Visual Studio 2012 RC
    • Uninstalling anything listed related to Visual Studio 11 beta (ignoring message about missing files as previous step removed most)
    • Manually deleting c:\Program Files (x86)\Microsoft Visual Studio 11.0
    • Reinstalling 2012 RC

    Hope that helps.


    • Proposed as answer by goldnode Tuesday, June 12, 2012 12:50 PM
    • Edited by goldnode Tuesday, June 12, 2012 12:57 PM typo
    Tuesday, June 12, 2012 12:49 PM