borland bcc32 -tWR -x-
-
aaaalso, ich muss etwas nach windows portieren und mit dem borland 5.5 compilieren. QMake (ein tool von Qt zum erstellen von Makefiles) erstellt mir eine Makefile in der unter anderem fogelndes steht:
CXXFLAGS= -tWR -w -w-hid -tWM -O2 -x- -RT- -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
wenn ich damit folgendes minimal-beispiel compilieren will
#include <vector> using namespace std; int main() { vector<vector<int> > a(8, vector<int>(8, 0)); }
kommen diese fehler
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -c -tWR -w -w-hid -tWM -O2 -x- -RT- -DUNICODE -DQT_DLL -DQT_THREAD
_SUPPORT -DQT_NO_DEBUG -I"C:\Qt\321\include" -I"C:\uni\schach\src" -I"C:\Qt\321\
mkspecs\win32-borland" -oengine.obj engine.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
engine.cpp:
Error E2263 C:\Programme\Borland\Bcc55\include\vector.h 161: Exception handling
not enabled in function vector<int,allocator<int> >::__initn(unsigned int,const
int &)
Warning W8057 C:\Programme\Borland\Bcc55\include\vector.h 172: Parameter 'value'
is never used in function vector<int,allocator<int> >::__initn(unsigned int,con
st int &)
Error E2263 C:\Programme\Borland\Bcc55\include\vector.h 161: Exception handling
not enabled in function vector<vector<int,allocator<int> >,allocator<vector<int,
allocator<int> > > >::__initn(unsigned int,const vector<int,allocator<int> > &)
Warning W8057 C:\Programme\Borland\Bcc55\include\vector.h 172: Parameter 'value'
is never used in function vector<vector<int,allocator<int> >,allocator<vector<i
nt,allocator<int> > > >::__initn(unsigned int,const vector<int,allocator<int> >
&)
*** 2 errors in Compile ***** error 1 ** deleting engine.obj
jetzt hab ich alles mögliche ausprobiert und herausgefunden, wenn ich obige zeile wie folgt abändere:
CXXFLAGS= -w -w-hid -tWM -O2 -RT- -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
lässt es sich einwandfrei compilieren. dummerweise kann ich mit diesen flags das projekt nicht mehr compilieren.
wer kann mir sagen wofür -tWR und -x- stehen? stell ich damit irgendwas aus, sodass vector<vector<> > nicht mehr funktionieren kann? oder ist das irgend nen bug in der vector-implementation von borland?
kann es sein, das die make-version die ich verwende veraltet ist?ich hoffe mir kann wer helfen, die vector<vector<> >'s rausmachen kann ich nicht. (zumindest nicht mal gerade eben)
-
Keine Ahnung, aber ich kann dir nur MinGW empfehlen.
http://prdownloads.sf.net/mingw/MinGW-3.2.0-rc-3.exe?downloadMfG RoaN;
-
hab dummerweise keine Qt-lizenz für mingw
habs mitlerweile umgeschrieben, also egal.