scons无法编译

时间:2016-07-14 18:20:02

标签: c++ windows scons

我正在尝试从源代码编译clingo。据说它可以在windows下构建。 scons可以找到我的mingw工具链但无法运行它们。 (环境变量设置正确,SConscript - env变量包含路径)这里生成了debug.py和debug.log文件。

的debug.log

scons: Configure: Checking whether the C++ compiler works... 
.sconf_temp\conftest_2.cpp <-
  |
  |int main()
  |{
  |    return 0;
  |}
  |
g++ /Fo.sconf_temp\conftest_2.obj /c .sconf_temp\conftest_2.cpp -std=c++11 -O0 -g -Wall -W -pedantic /nologo
g++: error: /Fo.sconf_temp\conftest_2.obj: No such file or directory
g++: error: /c: No such file or directory
g++: error: /nologo: No such file or directory
scons: Configure: no

debug.py

CXX = 'g++'
CXXFLAGS = ['-std=c++11', '-O0', '-g', '-Wall', '-W', '-pedantic']
CPPPATH = []
CPPDEFINES = {}
LIBS = []
LIBPATH = []
LINKFLAGS = ['-std=c++11', '-O0']
RPATH = []
AR = 'lib'
ARFLAGS = ['/nologo']
BISON = 'bison'
RE2C = 're2c'
PYTHON_CONFIG = 'python-config'
PKG_CONFIG = 'pkg-config'
WITH_PYTHON = 'auto'
WITH_LUA = 'auto'
WITH_TBB = 'auto'
WITH_CPPUNIT = 'auto'

0 个答案:

没有答案