Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 203863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:24:59+00:00 2026-05-11T17:24:59+00:00

I’m ok with using Cygwin or MinGW, but I need to end up with

  • 0

I’m ok with using Cygwin or MinGW, but I need to end up with 64-bit code, not 32-bit. This is because I will be calling the DLL from 64-bit managed C#. I can’t seem to find and good references for setting up those tools to create 64-bit binaries. Also, it would be nice if the GCC was version 4, not version 3 as came with my Cygwin install.

An alternative would be some form of interprocess communication. I will research that, but what I laid out above is what I really want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:25:00+00:00Added an answer on May 11, 2026 at 5:25 pm

    The 64-bit MinGW, based on (just released) gcc-4.4.0, is probably your best bet.
    (Since the mingw-w64 project on sourceforge.net is moving to mingw-w64.org it’s better to use mingw-w64.org)

    Detailed instructions:
    1. Download the archive
    2. Extract it somewhere under cygwin. In my case, top-level cygwin directory is C:\cygwin, I extracted the package into mingw directory, and ended up with the following contents in C:\cygwin\mingw (which is visible as /mingw under cygwin:

    $ ls -l /mingw
    total 1
    drwxr-xr-x+ 2 user None  0 May 10 08:32 bin
    drwxr-xr-x+ 2 user None  0 May 10 05:45 include
    drwxr-xr-x+ 2 user None  0 May 10 08:30 info
    drwxr-xr-x+ 3 user None  0 May 10 08:30 lib
    drwxr-xr-x+ 3 user None  0 May 10 05:45 libexec
    drwxr-xr-x+ 4 user None  0 May 10 05:45 man
    lrwxrwxrwx  1 user None 17 May 17 17:20 mingw -> x86_64-pc-mingw32
    drwxr-xr-x+ 3 user None  0 May 10 04:16 share
    drwxr-xr-x+ 5 user None  0 May 10 04:18 x86_64-pc-mingw32
    

    3. Now compile some C++ code. I used:

    // t.cc
    #include <vector>
    #include <string>
    
    using namespace std;
    int main()
    {
        vector<string> vs;
        vs.push_back("abc");
    }
    

    And compile it like this:

    $ /mingw/bin/x86_64-pc-mingw32-g++ t.cc
    

    4. Finally, verify the result is a Windows/x 64 executable, by running dumpbin /headers a.exe:

    Microsoft (R) COFF/PE Dumper Version 7.00.9466
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
    Dump of file a.exe
    
    PE signature found
    
    File Type: EXECUTABLE IMAGE
    
    FILE HEADER VALUES
                8664 machine (AMD64)
                  10 number of sections
            4A10AF9F time date stamp Sun May 17 17:45:19 2009
               ABA00 file pointer to symbol table
                 EC4 number of symbols
                  F0 size of optional header
                  27 characteristics
                       Relocations stripped
                       Executable
                       Line numbers stripped
                       Application can handle large (>2GB) addresses
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.