Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Number of sections exceeded object file format limit: compile with /bigobj
Forum Updated to NodeBB v4.3 + New Features

Number of sections exceeded object file format limit: compile with /bigobj

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 3.0k Views
  • 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.
  • F Offline
    F Offline
    Flaviu 0
    wrote on 7 Dec 2020, 08:50 last edited by
    #1

    While compiling a Github project with Qt, I got this error:

    D:\Project\myproject\src\projectplugins\filter\somefile.cpp:-1: error: C1128: number of sections exceeded object file format limit: compile with /bigobj
    

    Where can I setup this flag, bigobj ? I have tried to put this line:

    QMAKE_CXXFLAGS += -bigobj
    

    in the ending of CMakeLists.txt file, but didn't worked. My compiler is VS2017 64 bit, but I have no file.sln file to setup this option. Can you help me a little bit ?

    J 1 Reply Last reply 7 Dec 2020, 08:53
    0
    • F Flaviu 0
      7 Dec 2020, 08:50

      While compiling a Github project with Qt, I got this error:

      D:\Project\myproject\src\projectplugins\filter\somefile.cpp:-1: error: C1128: number of sections exceeded object file format limit: compile with /bigobj
      

      Where can I setup this flag, bigobj ? I have tried to put this line:

      QMAKE_CXXFLAGS += -bigobj
      

      in the ending of CMakeLists.txt file, but didn't worked. My compiler is VS2017 64 bit, but I have no file.sln file to setup this option. Can you help me a little bit ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Dec 2020, 08:53 last edited by
      #2

      @Flaviu-0

      add_compile_options(/bigobj)
      

      https://cmake.org/cmake/help/latest/command/add_compile_options.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      7 Dec 2020, 08:50

      • Login

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