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
  1. Home
  2. The Lounge
  3. Damnit.

Damnit.

Scheduled Pinned Locked Moved The Lounge
help
6 Posts 3 Posters 0 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.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    It seems that when I compile an i686 application with mingw-w64, the compiled application references the 64-bit libraries for some reason. I am not sure if I am doing something wrong, there is a bug in Mingw-w64, or Windows is just a complete idiot. I will be working on this one for a while.

    Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

    A J 2 Replies Last reply
    0
    • B Brisingr Aerowing

      It seems that when I compile an i686 application with mingw-w64, the compiled application references the 64-bit libraries for some reason. I am not sure if I am doing something wrong, there is a bug in Mingw-w64, or Windows is just a complete idiot. I will be working on this one for a while.

      Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

      A Offline
      A Offline
      AlphaDeltaTheta
      wrote on last edited by
      #2

      Brisingr Aerowing wrote:

      mingw-w64

      Why inthe owrld you're compiling with mingw-w64... use VC instead or if you must, use Mingw :laugh:

      B 1 Reply Last reply
      0
      • A AlphaDeltaTheta

        Brisingr Aerowing wrote:

        mingw-w64

        Why inthe owrld you're compiling with mingw-w64... use VC instead or if you must, use Mingw :laugh:

        B Offline
        B Offline
        Brisingr Aerowing
        wrote on last edited by
        #3

        Why not? It works for the most part. From what I have determined, this may be a bug in the 4.8.1 GCC release, as 4.8.0 seems to work correctly.

        Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

        A 1 Reply Last reply
        0
        • B Brisingr Aerowing

          Why not? It works for the most part. From what I have determined, this may be a bug in the 4.8.1 GCC release, as 4.8.0 seems to work correctly.

          Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

          A Offline
          A Offline
          AlphaDeltaTheta
          wrote on last edited by
          #4

          Brisingr Aerowing wrote:

          may be a bug

          Hope so it might be? :laugh:

          1 Reply Last reply
          0
          • B Brisingr Aerowing

            It seems that when I compile an i686 application with mingw-w64, the compiled application references the 64-bit libraries for some reason. I am not sure if I am doing something wrong, there is a bug in Mingw-w64, or Windows is just a complete idiot. I will be working on this one for a while.

            Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

            J Offline
            J Offline
            J Adam Armstrong
            wrote on last edited by
            #5

            Be sure to tell both the compiler and the linker that you are making a 32 bit app (-m32). Also, 64 bit gdb does not work with 32 bit programs as it will load systems libraries from the 64-bit directory instead of system32 (cause Windows redirects 64-bit programs away from 32-bit binaries should be). The error message suggest that there is a way, but I never worked out the details of it. EDIT: Also, if you have made sure both of the above are not the issue, then it is likely you have a 64-bit version of a dll your program links against in the search path. This is solved by using static linking or dropping the 32-bit version in the same directory as the application. Specifically, I would imagine that the mingw-64 compiler is on your PATH, and it will have the 64-bit versions of many of the dlls it links your programs against in the same folder as the compiler since it uses them.

            B 1 Reply Last reply
            0
            • J J Adam Armstrong

              Be sure to tell both the compiler and the linker that you are making a 32 bit app (-m32). Also, 64 bit gdb does not work with 32 bit programs as it will load systems libraries from the 64-bit directory instead of system32 (cause Windows redirects 64-bit programs away from 32-bit binaries should be). The error message suggest that there is a way, but I never worked out the details of it. EDIT: Also, if you have made sure both of the above are not the issue, then it is likely you have a 64-bit version of a dll your program links against in the search path. This is solved by using static linking or dropping the 32-bit version in the same directory as the application. Specifically, I would imagine that the mingw-64 compiler is on your PATH, and it will have the 64-bit versions of many of the dlls it links your programs against in the same folder as the compiler since it uses them.

              B Offline
              B Offline
              Brisingr Aerowing
              wrote on last edited by
              #6

              Nope, only the 32 bit is. And I did not know about the -m32 switch. :doh: Oh, well. Thanks!

              Me.Fail(Fail.Epic)

              (NOTE: I only used VB for the Me keyword!)

              Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

              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