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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:32:52+00:00 2026-05-24T21:32:52+00:00

MSVC compilers support command files which are used to pass command line options. This

  • 0

MSVC compilers support command files which are used to pass command line options. This is primarily due to the restriction on the size of the command line parameters that can be passed to the CreateProcess call.

This is less of an issue on Linux systems but when executing cygwin ports of Unix applications, such as gcc, the same limits apply.

Therefore, does anyone know if gcc/g++ also support some type of command file?

  • 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-24T21:32:53+00:00Added an answer on May 24, 2026 at 9:32 pm

    Sure!

    @file
               Read command-line options from file.  The options read are inserted
               in place of the original @file option.  If file does not exist, or
               cannot be read, then the option will be treated literally, and not
               removed.
    
               Options in file are separated by whitespace.  A whitespace
               character may be included in an option by surrounding the entire
               option in either single or double quotes.  Any character (including
               a backslash) may be included by prefixing the character to be
               included with a backslash.  The file may itself contain additional
               @file options; any such options will be processed recursively.
    

    You can also jury-rig this type of thing with xargs, if your platform has it.

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

Sidebar

Related Questions

I know MSVC can do this via a pragma message -> http://support.microsoft.com/kb/155196 Does gcc
I'm developing cross-platform project that would support : Four C++ compilers - GCC, MSVC,
I am trying to build a program using the command scons compiler = msvc.
i did this in msvc 2005. typedef void (*cleanup_t)(); void func(cleanup_t clean) { cleanup_t();
I am writing some C code which is expected to compile on multiple compilers
While using modern C++ compilers (including MSVC, GCC, ICC), how can I say if
We are currently using a single command line tool to build our product on
Under MSVC 9.0, this fails. Under g++ this compiles. If we take out the
Seems all compilers can deal with both c and c++,like gcc ,msvc... Is it
I was given with a MSVC project that doesn't worked with gcc. Particularly this

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.