gpt4 book ai didi

c - 当我的 C 文件有其他依赖项时,如何准备 ./configure make make install?

转载 作者:可可西里 更新时间:2023-11-01 12:04:49 25 4
gpt4 key购买 nike

编写/阅读代码似乎比准备部署脚本(例如 ./configure)和为我的 C 应用程序制作和安装要轻松得多。我如何制作 ./configure 文件并为以下 C 代码制作文件?感谢您的宝贵支持。

@file: main.c:

#include <ptlib.h>
#include <ptlib/video.h>

#ifndef _WIN32
#ifdef H323_H46018
#include "h460/h460_std18.h"
H460_FEATURE(Std18);
H460_FEATURE(Std19);
#endif

#ifdef H323_H46023
#include "h460/h460_std23.h"
#endif
#endif // _WIN32
#define new PNEW

int main()
{
// just assume the above works first
return 0;
}

最佳答案

正在运行 autoscan是一个好的开始。它会扫描您的源文件并创建一个初始的 configure.ac 文件(名为 configure.scan)。另请参阅 ifnames扫描你的#if。

关于c - 当我的 C 文件有其他依赖项时,如何准备 ./configure make make install?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6099864/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com