64-bit MinGW, (अभी जारी) gcc-4.4.0 के आधार पर, शायद आपकी सबसे अच्छी शर्त है।
विस्तृत निर्देश (के बाद से sourceforge.net पर MinGW-W64 परियोजना यह mingw-w64.org उपयोग करना बेहतर है mingw-w64.org ओर बढ़ रहा है): कहीं cygwin के तहत
1. डाउनलोड archive
2. निकालें यह। मेरे मामले में, उच्च-स्तरीय cygwin निर्देशिका C:\cygwin
है, मैं mingw
निर्देशिका में पैकेज निकाले, और C:\cygwin\mingw
में निम्नलिखित सामग्री के साथ समाप्त हो गया (जो cygwin के तहत /mingw
के रूप में दिख रहा है:
$ 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. अब कुछ संकलन । सी ++ कोड मैं प्रयोग किया है:
// t.cc
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> vs;
vs.push_back("abc");
}
और यह इस तरह संकलन: अंत में
$ /mingw/bin/x86_64-pc-mingw32-g++ t.cc
4., Verif
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
स्रोत
2009-05-17 03:00:22
मुझे एक Ming64 विंडोज़ http://www.drangon.org/mingw/ पर बनाया गया था जो ऐसा लगता था कि यह काम करने वाला था। हेडर फाइलों के साथ कोई समस्या नहीं मिली, आदि। लेकिन फिर cc1plus.exe (g ++ द्वारा बुलाया गया) क्रैश हो गया। आह। – Fantius