我尝试了从Github下载的最新版本nana (1.1.2/1.1.3)。库编译得很好。当我尝试用linux (gcc 4.8.4,clang 3.4)编译和链接任何示例程序时,我得到了以下错误:
enter In file included from /installs/nana/include/nana/gui/wvl.hpp:20:
In file included from /installs/nana/include/nana/gui/widgets/form.hpp:16:
In file included from /installs/nana/include/nana/gui/
我不能再和gcc合作了。
使用gcc -o run mytest.cpp,给出:
mytest.cpp:12:9: error: expected ‘;’ at end of member declaration
mytest.cpp:12:14: error: expected unqualified-id before ‘;’ token
mytest.cpp: In constructor ‘matrix::matrix()’:
mytest.cpp:23:26: error: invalid conversion from ‘int**’ to ‘int’ [-fpermissive]
以下是错误:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ios:39,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ostream:40,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/
在我非常简单的C++项目中,g++编译器抛出了非常奇怪的错误。以下错误:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ios:39,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ostream:40,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/
我有写在linux上的c++静态库。可以为iOS构建这个库吗?
我已经安装了g++-arm-linux-gnueabi,但是当我尝试这样做时:
arm-linux-gnueabi-g++-4.7 main.cpp -o mn -march=armv7
输出为:
target CPU does not support ARM mode
感谢并为我的英语道歉