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 7682225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:31:08+00:00 2026-05-31T18:31:08+00:00

Does anyone know how to use the command line compiler (‘cl’ and ‘link’) in

  • 0

Does anyone know how to use the command line compiler (‘cl’ and ‘link’) in Visual C++ to build a project? We are more used to ‘make’ and ‘gcc’ here, but were recently moved to Visual Studio. I suppose we could use nmake, but I’m hoping for some information regarding using ‘cl’ and ‘link’ (as in compiling without a .sln file).

something along the lines of

  1. create object files
  2. link object files to create executable

is what we want, but I just can’t seem to make it work using the command line parameters. Help please?

  • 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-31T18:31:09+00:00Added an answer on May 31, 2026 at 6:31 pm

    Edit: sorry, didn’t notice the ‘without .sln’ part. Ignore this answer please. I’m leaving it in place for others that may actually need this but it’s not an answer to the original question.

    If you just want to build a solution/project file (that is, most of your build settings are already defined in your project file), you can use devenv.exe to build the solution/project for you – this is probably the simplest way of doing a build from the command line.

    For example:

    devenv.exe myapp.sln /Rebuild "Release|x64"

    cleans & builds the myapp.sln solution in the Release|x64 configuration.

    If you run

    devenv.exe /?

    command, it gives you all command-line options. You can use devenv to build only a specific project in the solution by using the `/project’ switch.

    If you need more flexibility (and you’re willing to spend a lot of time writing the right script), you can use nmake to build from the command-line, but I don’t know that well, so I can’t give useful advice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know what the command line option is to generate a preprocessed file
Does anyone know of a free Perl program (command line preferable), module, or anyway
Does anyone know the best way I can create a configuration for a Console/Command-line
Does anyone know how to use the credential cache or network credential to get
Does anyone know how to use CruiseControl.Net to publish to an FTP server?
Does anyone know how to use the Raw Input facility on Windows from a
Does anyone know how to use an icon instead of text for the UINavigationController
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
Does anyone know if its possible to use phing to copy an entire folder
Does anyone know how i can use BST for config.time_zone in my rails config/environment.rb

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.