The command "C:\WINDOWS\System32\chcp.com 65001 >NUL

Sysprogs forums Forums VisualGDB The command "C:\WINDOWS\System32\chcp.com 65001 >NUL

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28875
    btbass
    Participant

    When trying to compile a c or c++ file in Visual Studio, I get the error

    ‘The command “C:\WINDOWS\System32\chcp.com 65001 >NUL’

    Sometimes a line like

    cout << “Failed to init bcm2835” << endl;

    will cause the error?

    and sometimes it will build ok with that line???

     

    #28878
    support
    Keymaster

    Hi,

    Please try checking the output window (View->Output) for the complete build log. It should contain more information about the error, explaining what exactly went wrong.

    If you are not sure, please share the entire log and we will help you understand it.

    P.S. Please consider using MSBuild or Advanced CMake instead of GNU Make. It is much better integrated with the VS GUI and will have a much lower chance of random failures due to misaligned settings.

    #28881
    btbass
    Participant

    I was using GNU Make, I have switched to using MSBuild and the problem has gone away.

    Thanks for the helpful suggestion.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.