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. [DELETED] Error within C preprocessor: "expected ')' before 'L'"
Qt 6.11 is out! See what's new in the release blog

[DELETED] Error within C preprocessor: "expected ')' before 'L'"

Scheduled Pinned Locked Moved General and Desktop
qtcreatorc++c99
4 Posts 3 Posters 1.4k Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rondog
      wrote on last edited by
      #2

      You can run just the preprocessor on the source code. This will expand all the macros so you can see what the compiler is complaining about.

      gcc -E -o output.c input.c

      More information here: http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html

      This is one reason macros are frowned upon.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What should the output look like ?

        if is something like "$0.0"

        ui->label->setText(QString("$%1").arg(APP_VERSION, 2, 'f', 1);

        would be way simpler and clean

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        ? 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What should the output look like ?

          if is something like "$0.0"

          ui->label->setText(QString("$%1").arg(APP_VERSION, 2, 'f', 1);

          would be way simpler and clean

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by A Former User
          #4
          This post is deleted!
          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