Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:41:01+00:00 2026-05-28T01:41:01+00:00

I am trying to compile a hello world program in Qt Using Qt Creator.

  • 0

I am trying to compile a hello world program in Qt Using Qt Creator.

I am getting ‘cl’ is not recognized as an internal or external command.

I am using Windows 7 and both VS 2008 and 2010 installed in it.
When I use Mingw it is compiling fine but if use vs 2008 it is giving this error.

After Setting Env Path = ..;..;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin also it is showing the same error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:41:02+00:00Added an answer on May 28, 2026 at 1:41 am

    That error happens because cl isn’t in your path. You need to add it there. The recommended way to do this is to launch a developer command prompt.

    Quoting the article Use the Microsoft C++ toolset from the command line:

    1. On the desktop, open the Windows Start menu. In Windows 11, choose the All apps button to open the list of installed apps. In Windows 10,
      the list is open to the left. Scroll down the list to find and open
      the folder (not the app) for your version of Visual Studio, for
      example, Visual Studio 2022.

    2. In the folder, choose the Developer Command Prompt for your version of Visual Studio. This shortcut starts a developer command
      prompt window that uses the default build architecture of 32-bit,
      x86-native tools to build 32-bit, x86-native code. If you prefer a
      non-default build architecture, choose one of the native or cross
      tools command prompts to specify the host and target architecture.

    For an even faster way to open a developer command prompt, enter
    developer command prompt in the desktop search box. Then choose the
    result you want.

    As the article notes, there are several different shortcuts for setting up different toolsets – you need to pick the suitable one.

    If you already have a plain Command Prompt window open, you can run the batch file vcvarsall.bat with the appropriate argument to set up the environment variables. Quoting the same article:

    1. At the command prompt, use the CD command to change to the Visual Studio installation directory. Then, use CD again to change to the
      subdirectory that contains the configuration-specific command files.
      For Visual Studio 2019 and Visual Studio 2017, use the
      VC\Auxiliary\Build subdirectory. For Visual Studio 2015, use the VC
      subdirectory.

    2. Enter the command for your preferred developer environment. For example, to build ARM code for UWP on a 64-bit platform, using the
      latest Windows SDK and Visual Studio compiler toolset, use this
      command line:

      vcvarsall.bat amd64_arm uwp
      

    From the article, the possible values for the first argument are the following:

    • x86 (x86 32-bit native)
    • x86_amd64 or x86_x64 (x64 on x86 cross)
    • x86_arm (ARM on x86 cross)
    • x86_arm64 (ARM64 on x86 cross)
    • amd64 or x64 (x64 64-bit native)
    • amd64_x86 or x64_x86 (x86 on x64 cross)
    • amd64_arm or x64_arm (ARM on x64 cross)
    • amd64_arm64 or x64_arm64 (ARM64 on x64 cross)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to compile this Hello World program in Windows 7 with Visual
This is what I get when trying to compile a simple hello world program
I'm trying to compile a simple Hello World program in C++ but I keep
I'm trying to compile my first linux ARM hello world program and when I
So I am trying to run console 64 bit Hello World program. I have
I am trying to use MinGW to compile a C program under Windows XP.
Trying to run a simple Hello World C++ program on Eclipse (Galileo) CDT plugin
I am trying to compile a hello world module given over here I have
i am trying to write a boot loader(hello world sort). i am using Bochs
I am trying to compile a c++ application using the following command in command

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.