of type std::bad_cast: std::bad_cast

of type std::bad_cast: std::bad_cast

我这里的情况:

我有两个so A 和B,调用程序c

B调用a ,b的cmakelist里面要加A和A的头文件:

头文件:

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../android/${MNN_DIR}/include)

库:

add_library( A SHARED IMPORTED )
set_target_properties(
        A
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_CURRENT_LIST_DIR}/../android/${MNN_DIR}/libA.so
)
 

c调用的时候,要加a和b:

    add_library( A SHARED IMPORTED )        
    set_target_properties(
            A
            PROPERTIES IMPORTED_LOCATION

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/115066483