I'm trying to compile Qtd trunk on QT 4.7 using dmd 2.054, but I'm getting a strange error:

-- Check for working CXX compiler: c:/Qt/2010.05/mingw/bin/g++.exe -- broken

The C++ compiler "c:/Qt/2010.05/mingw/bin/g++.exe" is not able to compile a
  simple test program.

But I'm able to compile a small program, t.c:
int main() { return 0; }
g++ t.c
a.exe // works

Here's the full output:

c:\d\ext\qtd\dmd-2.054>cmake -G"MinGW Makefiles" ../ -DCMAKE_CXX_FLAGS="-m32"

-- The CXX compiler identification is GNU
-- The C compiler identification is GNU
-- Check for working CXX compiler: c:/Qt/2010.05/mingw/bin/g++.exe
-- Check for working CXX compiler: c:/Qt/2010.05/mingw/bin/g++.exe -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTes
tCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "c:/Qt/2010.05/mingw/bin/g++.exe" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: C:/d/ext/qtd/dmd-2.054/CMakeFiles/CMakeTmp



  Run Build Command:c:/Qt/2010.05/mingw/bin/mingw32-make.exe
  "cmTryCompileExec/fast"

  c:/Qt/2010.05/mingw/bin/mingw32-make.exe -f
  CMakeFiles\cmTryCompileExec.dir\build.make
  CMakeFiles/cmTryCompileExec.dir/build

  mingw32-make.exe[1]: Entering directory
  `C:/d/ext/qtd/dmd-2.054/CMakeFiles/CMakeTmp'

  "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  C:\d\ext\qtd\dmd-2.054\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building CXX object
  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.obj

  c:\Qt\2010.05\mingw\bin\g++.exe -m32 -o
  CMakeFiles\cmTryCompileExec.dir\testCXXCompiler.cxx.obj -c
  C:\d\ext\qtd\dmd-2.054\CMakeFiles\CMakeTmp\testCXXCompiler.cxx

  Linking CXX executable cmTryCompileExec.exe

  "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_link_script
  CMakeFiles\cmTryCompileExec.dir\link.txt --verbose=1

  Error opening link script "CMakeFiles\cmTryCompileExec.dir\link.txt"

  mingw32-make.exe[1]: *** [cmTryCompileExec.exe] Error 1

  mingw32-make.exe[1]: Leaving directory
  `C:/d/ext/qtd/dmd-2.054/CMakeFiles/CMakeTmp'

  mingw32-make.exe: *** [cmTryCompileExec/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)


-- Configuring incomplete, errors occurred!

Reply via email to