c++ - 如何在 mac os x 上安装量子计算语言?

标签 c++ macos qcl

我正在尝试在 mac os 10.7.2 上安装 QCL 0.6.3(可从 http://tph.tuwien.ac.at/~oemer/qcl.html 获得)。我安装了开发人员工具,可以用 c 语言进行基本编程,但我对 makefile 等了解不多。

安装说明如下:

Besides the usual C++ development tools, you will need to have flex, bison and (optionally) GNU readline installed on your system.

Untar the source package, then cd to the QCL directory, edit the Makefile for your needs and type make make install

This will, by default, install the binary qcl to /usr/local/bin and the QCL include files to /usr/local/lib/qcl.

For plotting support, libplotter (the C++ bindings of of GNU libplot) is required. GNU libplot is part of the the GNU plotutils.

Since version 0.4.3, QCL also includes support for the TeXmacs mathematical text editor. Recent TeXmacs distributions (1.0.0.6 or newer) already provide the necessary interfaces, so no additional installation is required.

我认为 flex 和 bison 在 mac os x 中是自动的?不确定 readline 或 libplotter?

当我输入 make 时,我收到一个错误:

g++ -c  -Wall -O2 -g -DQCL_DEBUG -DQC_DEBUG -DQCL_PLOT -DQCL_USE_READLINE -DQCL_IRQ -Iqc -DDEF_INCLUDE_PATH="\"/usr/local/lib/qcl\""   -c -o error.o error.cc
error.cc: In function ‘void initialize_readline()’:
error.cc:39: error: ‘rl_unbind_key’ was not declared in this scope
make: *** [error.o] Error 1

如有任何帮助、一般提示或具体说明,我们将不胜感激。

最佳答案

感谢保罗的评论。当我做更多的事情时,我发现编辑 makefile 确实允许我编译程序。我注释掉了 makefile 的绘图支持和 readline 支持部分。然后它运行良好,似乎有助于

关于c++ - 如何在 mac os x 上安装量子计算语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7905898/

相关文章:

objective-c - 如何在 mac os x 中安装 OCLint

Mac OS X 10.8.5 上的 MySQL 连接错误

quantum-computing - 如何在 Windows 上运行 QCL(量子编程语言)?

c++ - 线程上下文切换

c++ - 正确退出 gtkmm 应用程序

c++ - 分配函数定义

c++ - 对命名空间范围感到困惑!

ios - 在 Objective C 中使用相应国家/地区的货币格式