拜托我需要你的帮忙。
我已经安装了用于在 Windows 8 上开发基于约束的系统和应用程序Gecode 4.4.0的工具包,还有编译器 C++ Dev C++ 5.9.2但我仍然不知道如何运行我的第一个程序或提供的示例安装。
我读过我需要一个make文件,但实际上我还没有成功编译或执行。
编译命令:
g++.exe -D__DEBUG__ main.o sat.o -o TestGecode.exe -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib32" -L"C:/Program Files (x86)/Dev- cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -L"C:/Program Files (x86)/Gecode/include" -m32 -g3
输出错误:
sat.o: 在函数
ZN6Gecode9ExceptionD2Ev': c:/program files (x86)/dev-cpp/mingw64/x86_64-w64-mingw32/include/gecode/support/exception.hpp:46: undefined reference to
_imp___ZTVN6Gecode9ExceptionE' sat.o: 在函数ZN6Gecode15MemoryExhaustedC1Ev': c:/program files (x86)/dev-cpp/mingw64/x86_64-w64-mingw32/include/gecode/support/exception.hpp:90: undefined reference to
_imp___ZN6Gecode9ExceptionC2EPKcS2_' sat.o: 在函数'ZNK6Gecode9PosChoice7archiveERNS_7ArchiveE': ...