Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cl and too long command line
Forum Updated to NodeBB v4.3 + New Features

Cl and too long command line

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    p-himik
    wrote on last edited by
    #1

    In my project's pro file i added a very long line to DEFINES variable. When trying to compile (MSVC 9.0) following error appears (without any dependency on that line's contents):
    @jom 1.0.6 - empower your cores

    command failed with exit code 2
    command failed with exit code 2
    command failed with exit code 2
    command failed with exit code 2
    command failed with exit code 2
    The process "C:\Qt\qtcreator-2.3.0\bin\jom.exe" exited with code 2.
    Error while building project yaBuhgalterProject (target: Desktop)
    When executing build step 'Make'@

    Without that long line everything is OK.
    Is that a bug in cl.exe?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      More likely in cmd. See http://support.microsoft.com/kb/830473

      1 Reply Last reply
      0
      • P Offline
        P Offline
        p-himik
        wrote on last edited by
        #3

        Thank you for the link.
        I'm using QtCreator and i don't think that command line was longer than 2047 characters. Unfortunately i can't recheck it now but tomorrow i'll try to figure out maximum length of that line.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          p-himik
          wrote on last edited by
          #4

          To my surprise maximum line's length is 1661. If i add one more character errors in the main post appear.
          Maybe it's not line's length that causes that errors but too long -D parameter (1016 characters), i don't know.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved