如何建立(获取/下载)time.h库? [英] How do I build (get/download) time.h library?

查看:845
本文介绍了如何建立(获取/下载)time.h库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试通过Makefile在Linux上构建项目.
我一直找不到错误.
我四处询问,并被告知我的项目无权访问库文件夹.
因此,我试图通过在项目文件夹中本地使用时间库来解决此问题.
我是Linux的新手.所以,请原谅我的问题是否听起来很天真.
我找到了,但是我不知道我需要什么文件,以及如何构建库.
http://sourceware.org/git/? p = glibc.git; a = tree; f = time; h = c950c5d4dd90541e8f3c7e1649fcde4aead989bb; hb = master [

Hi,
I am trying to build a project on Linux via Makefile.
I keep getting cannot find error.
I asked around, and I was told that my project doesn''t have access to library folders.
Therefore, I am trying to solve this problem by using the time library locally inside my project''s folder.
I am very new to Linux. So, please forgive my question if it sounds naive.
I found this, but I don''t know what files I need, and how to build the library.
http://sourceware.org/git/?p=glibc.git;a=tree;f=time;h=c950c5d4dd90541e8f3c7e1649fcde4aead989bb;hb=master[^]

* Where can I find the time.h library/package?
* How do I build the library?

推荐答案

您需要做的第一件事是了解编译器和库; time.h是库中头文件的名称,它本身不执行任何操作.您需要从树的根目录下载并安装整个库,然后在系统上构建它.查看根目录中名为INSTALL的文件,和/或查看有关GLIB和GCC的文档.
First thing you need to do is learn about compilers and libraries; time.h is the name of a header file within the library, and on its own does nothing. You need to download and install the entire library from the root of the tree and build it on your system. Take a look at the file named INSTALL in the root directory, and/or take a look at the documentation on GLIB and GCC.


这篇关于如何建立(获取/下载)time.h库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆