Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. GCC version woes

GCC version woes

Scheduled Pinned Locked Moved The Lounge
announcementc++algorithmsperformance
7 Posts 4 Posters 2 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.
  • honey the codewitchH Offline
    honey the codewitchH Offline
    honey the codewitch
    wrote on last edited by
    #1

    GCC reports different versions for different platforms, meaning I can't compare the version of GCC i'm running on windows with the one that's running at Travis-CI. The trouble is my code compiles fine locally, but fails at travis-CI and compiler version differences are the only things I can think of at this point that would explain it. I was hoping to optimize my C++14 rendition of my GFX code a little, and bring it up to par with the C++17 version but the g++ compiler at travis-CI will not eat my code no matter how I coax it. I'm completely stumped and frustrated because my morning started on an optimistic note - i saw an opportunity for optimization - and I was rewarded with broken build after broken build. :(( EDIT: AHA Was told how to update the distro running at travis-CI and it worked.

    To err is human. Fortune favors the monsters.

    Greg UtasG Richard Andrew x64R D 3 Replies Last reply
    0
    • honey the codewitchH honey the codewitch

      GCC reports different versions for different platforms, meaning I can't compare the version of GCC i'm running on windows with the one that's running at Travis-CI. The trouble is my code compiles fine locally, but fails at travis-CI and compiler version differences are the only things I can think of at this point that would explain it. I was hoping to optimize my C++14 rendition of my GFX code a little, and bring it up to par with the C++17 version but the g++ compiler at travis-CI will not eat my code no matter how I coax it. I'm completely stumped and frustrated because my morning started on an optimistic note - i saw an opportunity for optimization - and I was rewarded with broken build after broken build. :(( EDIT: AHA Was told how to update the distro running at travis-CI and it worked.

      To err is human. Fortune favors the monsters.

      Greg UtasG Offline
      Greg UtasG Offline
      Greg Utas
      wrote on last edited by
      #2

      C++11 FTW. :-D

      Robust Services Core | Software Techniques for Lemmings | Articles
      The fox knows many things, but the hedgehog knows one big thing.

      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

      honey the codewitchH 1 Reply Last reply
      0
      • honey the codewitchH honey the codewitch

        GCC reports different versions for different platforms, meaning I can't compare the version of GCC i'm running on windows with the one that's running at Travis-CI. The trouble is my code compiles fine locally, but fails at travis-CI and compiler version differences are the only things I can think of at this point that would explain it. I was hoping to optimize my C++14 rendition of my GFX code a little, and bring it up to par with the C++17 version but the g++ compiler at travis-CI will not eat my code no matter how I coax it. I'm completely stumped and frustrated because my morning started on an optimistic note - i saw an opportunity for optimization - and I was rewarded with broken build after broken build. :(( EDIT: AHA Was told how to update the distro running at travis-CI and it worked.

        To err is human. Fortune favors the monsters.

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        You need to google the "Works on My Machine" sticker. :-D

        The difficult we do right away... ...the impossible takes slightly longer.

        1 Reply Last reply
        0
        • Greg UtasG Greg Utas

          C++11 FTW. :-D

          Robust Services Core | Software Techniques for Lemmings | Articles
          The fox knows many things, but the hedgehog knows one big thing.

          honey the codewitchH Offline
          honey the codewitchH Offline
          honey the codewitch
          wrote on last edited by
          #4

          The problem with that is C++11's ability to evaluate at compile time is extremely limited compared to later versions of C++, and I routinely open a dialogue with the compiler in my code. Basically, my code relies heavily on compile time evaluation of complicated expressions - even bit shifts that aren't byte aligned. You just can't do it with C++11 or I would have. C++14 is the lowest one I can target to get the features that I need. To do what I'm doing in C++11 is simply not possible. My code could not function the way that it does now. There's simply not language support for it.

          To err is human. Fortune favors the monsters.

          Greg UtasG 1 Reply Last reply
          0
          • honey the codewitchH honey the codewitch

            The problem with that is C++11's ability to evaluate at compile time is extremely limited compared to later versions of C++, and I routinely open a dialogue with the compiler in my code. Basically, my code relies heavily on compile time evaluation of complicated expressions - even bit shifts that aren't byte aligned. You just can't do it with C++11 or I would have. C++14 is the lowest one I can target to get the features that I need. To do what I'm doing in C++11 is simply not possible. My code could not function the way that it does now. There's simply not language support for it.

            To err is human. Fortune favors the monsters.

            Greg UtasG Offline
            Greg UtasG Offline
            Greg Utas
            wrote on last edited by
            #5

            I'm glad to see that you updated your original post to say you got this sorted. Now I don't feel so guilty for trolling. :)

            Robust Services Core | Software Techniques for Lemmings | Articles
            The fox knows many things, but the hedgehog knows one big thing.

            <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
            <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

            1 Reply Last reply
            0
            • honey the codewitchH honey the codewitch

              GCC reports different versions for different platforms, meaning I can't compare the version of GCC i'm running on windows with the one that's running at Travis-CI. The trouble is my code compiles fine locally, but fails at travis-CI and compiler version differences are the only things I can think of at this point that would explain it. I was hoping to optimize my C++14 rendition of my GFX code a little, and bring it up to par with the C++17 version but the g++ compiler at travis-CI will not eat my code no matter how I coax it. I'm completely stumped and frustrated because my morning started on an optimistic note - i saw an opportunity for optimization - and I was rewarded with broken build after broken build. :(( EDIT: AHA Was told how to update the distro running at travis-CI and it worked.

              To err is human. Fortune favors the monsters.

              D Offline
              D Offline
              den2k88
              wrote on last edited by
              #6

              GCC is a :elephant: joke. Easily the worst compiler I had the displeasure of using, and I compiled VB6 software. The fact that linker arguments have to be passed in a specific order if a library calls some other library is the most bonkers "feature" I ever saw, and the error messages passed by the compiler are gibberish when compared to... well any other compiler out there (MSVC, Intel, GreenHills, Keil to name a few).

              GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

              honey the codewitchH 1 Reply Last reply
              0
              • D den2k88

                GCC is a :elephant: joke. Easily the worst compiler I had the displeasure of using, and I compiled VB6 software. The fact that linker arguments have to be passed in a specific order if a library calls some other library is the most bonkers "feature" I ever saw, and the error messages passed by the compiler are gibberish when compared to... well any other compiler out there (MSVC, Intel, GreenHills, Keil to name a few).

                GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                honey the codewitchH Offline
                honey the codewitchH Offline
                honey the codewitch
                wrote on last edited by
                #7

                GCC is a fine compiler. It also happens to have a pluggable backend meaning it's a much better cross compiler than most other offerings In my opinion MSVC is garbage I don't even target it with my code, and which is probably why VS supports clang now. But of course we'll never agree on this.

                To err is human. Fortune favors the monsters.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups