English 中文(简体)
1.h 在汇编《布瓦斯特》和《北海新》时坚持冲突。
原标题:assert.h conflict when compiling Boost with Android NDK

在试图与Bostonc++共同编制方案时 图书馆使用Anthony NDK,我有以下类型的错误:

In file included from /home/afeder/android/0ad/jni/lib/boost/boost/assert.hpp:50,
                 from /home/afeder/android/0ad/jni/lib/boost/boost/random/linear_congruential.hpp:21,
                 from /home/afeder/android/0ad/jni/src/source/scriptinterface/ScriptInterface.h:34,
                 from /home/afeder/android/0ad/jni/src/source/ps/World.h:28,
                 from /home/afeder/android/0ad/jni/src/source/main.cpp:58:
/home/afeder/android/android-ndk-r7/platforms/android-5/arch-arm/usr/include/assert.h: At global scope:
/home/afeder/android/android-ndk-r7/platforms/android-5/arch-arm/usr/include/assert.h:63: warning: redundant redeclaration of  void __assert(const char*, int, const char*)  in same scope
/home/afeder/android/android-ndk-r7/platforms/android-5/arch-arm/usr/include/assert.h:63: warning: previous declaration of  void __assert(const char*, int, const char*) 
/home/afeder/android/android-ndk-r7/platforms/android-5/arch-arm/usr/include/assert.h:64: warning: redundant redeclaration of  void __assert2(const char*, int, const char*, const char*)  in same scope
/home/afeder/android/android-ndk-r7/platforms/android-5/arch-arm/usr/include/assert.h:64: warning: previous declaration of  void __assert2(const char*, int, const char*, const char*) 

显然,博恩公司提供的一套“侵权行为”职能与国库本身提供的职能之间有某种冲突,但我如何解决?

感谢。

问题回答

标题档案有点宏观,概括了整个标题档案内容。 在你看来,你更愿意排除你不需要的头盔。

例如,如果“Bost”的头号档案有编号Fine BOOST_ASSERT_HPP和NDK has andROID_ASSERT_H,从您的消息来源来看,你可以通过使用编号Noundef BOOST_ASSERT_HPP来排除相关头盔。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签