English 中文(简体)
越野建筑设计: B. 结构的不确定符号
原标题:Error building app: Undefined symbols for architecture armv7

I am having an issue trying to build my program, which is using a C++ class to dela with FFmpeg objects:

    Undefined symbols for architecture armv7:
  "__Z13avcodec_open2P14AVCodecContextP7AVCodecPP12AVDictionary", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z21avcodec_decode_audio4P14AVCodecContextP7AVFramePiP8AVPacket", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
  "__Z20avformat_close_inputPP15AVFormatContext", referenced from:
      __Z11closeStreamv in RTPReader.o
  "__Z21avformat_network_initv", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z26avcodec_get_frame_defaultsP7AVFrame", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
  "__Z15av_register_allv", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z19av_find_best_streamP15AVFormatContext11AVMediaTypeiiPP7AVCodeci", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z14av_free_packetP8AVPacket", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
      __Z11closeStreamv in RTPReader.o
  "__Z6av_logPviPKcz", referenced from:
      __Z10openStreamPKcb in RTPReader.o
      __Z13getStreamDataRPhRi in RTPReader.o
  "__Z19avformat_open_inputPP15AVFormatContextPKcP13AVInputFormatPP12AVDictionary", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z26av_samples_get_buffer_sizePiii14AVSampleFormati", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
  "__Z19avcodec_alloc_framev", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
  "__Z25avformat_find_stream_infoP15AVFormatContextPP12AVDictionary", referenced from:
      __Z10openStreamPKcb in RTPReader.o
  "__Z13av_read_frameP15AVFormatContextP8AVPacket", referenced from:
      __Z13getStreamDataRPhRi in RTPReader.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在我的C++方法中,它增加了一个预设标准——Z#,我不知道为什么。

问题是什么?

最佳回答
问题回答

在我看来,这间图书馆与“C”外人有联系,但你试图在没有这一条款的情况下建立联系。 Maybe 您。 H 档案来自一个版本和......。 业余公司从完成另一卷档案。

在C++中,当你试图从C++法典中获取C功能时,使用关于进口职能的“C”条款。 您应使用这一条款。





相关问题
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?

热门标签