- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我决定将我的音频项目移植到 C 并成功使用 SDL 库。我想使用 PortAudio 提供的 ASIO,所以我构建了支持 ASIO 的 PortAudio,没有出现错误。当我包含 portaudio.h 时,将库 -lportaudio 添加到链接器,构建所有内容并运行,没有问题。但是,当我尝试调用任何 portaudio 函数(例如 Pa_Initialize
)时,我得到以下输出:
08:27:54 **** Incremental Build of configuration Debug for project PortAudioTest ****
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "..\\main.c"
gcc -o PortAudioTest.exe main.o -lportaudio
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_util.o): In function `PaUtil_GetTime':
D:\Dokumenty\Downloads\portaudio/src/os/win/pa_win_util.c:148: undefined reference to `timeGetTime@0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `AdvanceToNextOutputBuffer':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2733: undefined reference to `waveOutWrite@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2739: undefined reference to `waveOutGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `AdvanceToNextInputBuffer':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2706: undefined reference to `waveInAddBuffer@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2712: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `StopStream':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3538: undefined reference to `waveOutReset@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3542: undefined reference to `waveOutGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3551: undefined reference to `waveInReset@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3555: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `ProcessingThreadProc':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2968: undefined reference to `waveOutGetPosition@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `TerminateWaveHeaders':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2099: undefined reference to `waveInUnprepareHeader@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2101: undefined reference to `waveOutUnprepareHeader@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `QueryOutputWaveFormatEx':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:543: undefined reference to `waveOutOpen@24'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:559: undefined reference to `waveOutGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `QueryInputWaveFormatEx':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:517: undefined reference to `waveInOpen@24'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:533: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `InitializeWaveHeaders':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2049: undefined reference to `waveInPrepareHeader@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2059: undefined reference to `waveOutPrepareHeader@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:2063: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `AbortStream':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3597: undefined reference to `waveOutReset@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3600: undefined reference to `waveOutGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3610: undefined reference to `waveInReset@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3613: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `StartStream':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3235: undefined reference to `waveInAddBuffer@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3239: undefined reference to `waveInGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3252: undefined reference to `waveOutPause@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3327: undefined reference to `waveOutGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3323: undefined reference to `waveOutWrite@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3388: undefined reference to `waveInStart@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3393: undefined reference to `waveInGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3403: undefined reference to `waveOutRestart@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:3406: undefined reference to `waveOutGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `TerminateWaveHandles':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1940: undefined reference to `waveInClose@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1958: undefined reference to `waveInGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1947: undefined reference to `waveOutClose@4'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1962: undefined reference to `waveOutGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `InitializeWaveHandles':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1860: undefined reference to `waveInOpen@24'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1910: undefined reference to `waveOutGetErrorTextA@12'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1866: undefined reference to `waveOutOpen@24'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:1906: undefined reference to `waveInGetErrorTextA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `PaWinMme_Initialize':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:976: undefined reference to `waveInMessage@16'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:980: undefined reference to `waveOutMessage@16'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:984: undefined reference to `waveInGetNumDevs@0'
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:988: undefined reference to `waveOutGetNumDevs@0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `InitializeInputDeviceInfo':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:692: undefined reference to `waveInGetDevCapsA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `InitializeOutputDeviceInfo':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:820: undefined reference to `waveOutGetDevCapsA@12'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_wmme.o): In function `PaWinMme_Initialize':
D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c:988: undefined reference to `waveOutGetNumDevs@0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o): In function `Terminate':
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1409: undefined reference to `operator delete(void*)'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o): In function `GetStreamTime':
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:3538: undefined reference to `timeGetTime@0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o): In function `PaAsio_Initialize':
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1382: undefined reference to `operator delete(void*)'
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1216: undefined reference to `operator new(unsigned int)'
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1216: undefined reference to `operator delete(void*)'
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1218: undefined reference to `__cxa_get_exception_ptr'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o): In function `bad_alloc':
c:/mingw/lib/gcc/mingw32/4.8.1/include/c++/new:54: undefined reference to `vtable for std::bad_alloc'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o): In function `PaAsio_Initialize':
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1218: undefined reference to `__cxa_begin_catch'
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1218: undefined reference to `std::bad_alloc::~bad_alloc()'
D:\Dokumenty\Downloads\portaudio/src/hostapi/asio/pa_asio.cpp:1218: undefined reference to `__cxa_end_catch'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o):pa_asio.cpp:(.rdata$_ZTISt9exception[__ZTISt9exception]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o):pa_asio.cpp:(.rdata$_ZTISt9bad_alloc[__ZTISt9bad_alloc]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_asio.o):pa_asio.cpp:(.eh_frame+0x6f7): undefined reference to `__gxx_personality_v0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_coinitialize.o): In function `PaWinUtil_CoInitialize':
D:\Dokumenty\Downloads\portaudio/src/os/win/pa_win_coinitialize.c:79: undefined reference to `CoInitialize@4'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(pa_win_coinitialize.o): In function `PaWinUtil_CoUninitialize':
D:\Dokumenty\Downloads\portaudio/src/os/win/pa_win_coinitialize.c:139: undefined reference to `CoUninitialize@0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTI8IUnknown[__ZTI8IUnknown]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTI5IASIO[__ZTI5IASIO]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTI21IASIOThiscallResolver[__ZTI21IASIOThiscallResolver]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV8IUnknown[__ZTV8IUnknown]+0x8): undefined reference to `__cxa_pure_virtual'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV8IUnknown[__ZTV8IUnknown]+0xc): undefined reference to `__cxa_pure_virtual'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV8IUnknown[__ZTV8IUnknown]+0x10): undefined reference to `__cxa_pure_virtual'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV5IASIO[__ZTV5IASIO]+0x8): undefined reference to `__cxa_pure_virtual'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV5IASIO[__ZTV5IASIO]+0xc): undefined reference to `__cxa_pure_virtual'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(iasiothiscallresolver.o):iasiothiscallresolver.cpp:(.rdata$_ZTV5IASIO[__ZTV5IASIO]+0x10): more undefined references to `__cxa_pure_virtual' follow
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiodrivers.o): In function `Z14loadAsioDriverPc':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/asiodrivers.cpp:11: undefined reference to `operator new(unsigned int)'
C:/MinGW/msys/1.0/asio/ASIOSDK/host/asiodrivers.cpp:11: undefined reference to `operator delete(void*)'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiodrivers.o):asiodrivers.cpp:(.eh_frame+0xff): undefined reference to `__gxx_personality_v0'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiolist.o): In function `deleteDrvStruct':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:111: undefined reference to `operator delete(void*)'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiolist.o): In function `newDrvStruct':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:75: undefined reference to `operator new[](unsigned int)'
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:80: undefined reference to `CLSIDFromString@8'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiolist.o): In function `ZN14AsioDriverListC2Ev':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:157: undefined reference to `CoInitialize@4'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiolist.o): In function `ZN14AsioDriverList14asioOpenDriverEiPPv':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:184: undefined reference to `CoCreateInstance@20'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libportaudio.a(asiolist.o): In function `ZN14AsioDriverListD2Ev':
C:/MinGW/msys/1.0/asio/ASIOSDK/host/pc/asiolist.cpp:164: undefined reference to `CoUninitialize@0'
collect2.exe: error: ld returned 1 exit status
08:27:55 Build Finished (took 858ms)
我在 Windows 10 64 位上使用 32 位 MinGW 和 Eclipse。
我也不太明白,为什么要使用 D:\Dokumenty\Downloads\portaudio
中的 portaudio header 。当使用 MSYS 构建时,我使用了 ./configure --prefix=/mingw
,库和包含文件存在于我的 MinGW 目录中。
提前感谢您的任何提示。
最佳答案
when I try to call any of the portaudio functions (Pa_Initialize), I get [link errors]
好的,一般的链接错误只是缺少库。
undefined reference to `__cxa_pure_virtual'
...可以通过添加 C++ 标准库来修复,可能是 -lstdc++
和 对 `waveOutGetNumDevs@0' 的 undefined reference
... 可以通过添加 libwinmm.a
或类似内容来修复。
why portaudio headers from
D:\Dokumenty\Downloads\portaudio
are being used
这些代表编译到 libportaudio
中的源代码。当它被构建时,它包含像 D:\Dokumenty\Downloads\portaudio/src/hostapi/wmme/pa_win_wmme.c
这样的源文件,它引用了像 waveOutWrite()
这样的函数>。现在您正在使用 libportaudio
生成可执行文件,您必须为链接器提供解析所有这些依赖项所需的库。
关于c - 使用 PortAudio 构建 C 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33625272/
#include using namespace std; class C{ private: int value; public: C(){ value = 0;
这个问题已经有答案了: What is the difference between char a[] = ?string?; and char *p = ?string?;? (8 个回答) 已关闭
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 7 年前。 此帖子已于 8 个月
除了调试之外,是否有任何针对 c、c++ 或 c# 的测试工具,其工作原理类似于将独立函数复制粘贴到某个文本框,然后在其他文本框中输入参数? 最佳答案 也许您会考虑单元测试。我推荐你谷歌测试和谷歌模拟
我想在第二台显示器中移动一个窗口 (HWND)。问题是我尝试了很多方法,例如将分辨率加倍或输入负值,但它永远无法将窗口放在我的第二台显示器上。 关于如何在 C/C++/c# 中执行此操作的任何线索 最
我正在寻找 C/C++/C## 中不同类型 DES 的现有实现。我的运行平台是Windows XP/Vista/7。 我正在尝试编写一个 C# 程序,它将使用 DES 算法进行加密和解密。我需要一些实
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
有没有办法强制将另一个 窗口置于顶部? 不是应用程序的窗口,而是另一个已经在系统上运行的窗口。 (Windows, C/C++/C#) 最佳答案 SetWindowPos(that_window_ha
假设您可以在 C/C++ 或 Csharp 之间做出选择,并且您打算在 Windows 和 Linux 服务器上运行同一服务器的多个实例,那么构建套接字服务器应用程序的最明智选择是什么? 最佳答案 如
你们能告诉我它们之间的区别吗? 顺便问一下,有什么叫C++库或C库的吗? 最佳答案 C++ 标准库 和 C 标准库 是 C++ 和 C 标准定义的库,提供给 C++ 和 C 程序使用。那是那些词的共同
下面的测试代码,我将输出信息放在注释中。我使用的是 gcc 4.8.5 和 Centos 7.2。 #include #include class C { public:
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我的客户将使用名为 annoucement 的结构/类与客户通信。我想我会用 C++ 编写服务器。会有很多不同的类继承annoucement。我的问题是通过网络将这些类发送给客户端 我想也许我应该使用
我在 C# 中有以下函数: public Matrix ConcatDescriptors(IList> descriptors) { int cols = descriptors[0].Co
我有一个项目要编写一个函数来对某些数据执行某些操作。我可以用 C/C++ 编写代码,但我不想与雇主共享该函数的代码。相反,我只想让他有权在他自己的代码中调用该函数。是否可以?我想到了这两种方法 - 在
我使用的是编写糟糕的第 3 方 (C/C++) Api。我从托管代码(C++/CLI)中使用它。有时会出现“访问冲突错误”。这使整个应用程序崩溃。我知道我无法处理这些错误[如果指针访问非法内存位置等,
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 7 年前。
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
我有一些 C 代码,将使用 P/Invoke 从 C# 调用。我正在尝试为这个 C 函数定义一个 C# 等效项。 SomeData* DoSomething(); struct SomeData {
这个问题已经有答案了: Why are these constructs using pre and post-increment undefined behavior? (14 个回答) 已关闭 6
我是一名优秀的程序员,十分优秀!