Click here to Skip to main content
11,705,762 members (47,717 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C Linux time
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.;a=tree;f=time;h=c950c5d4dd90541e8f3c7e1649fcde4aead989bb;hb=master[^]

* Where can I find the time.h library/package?
* How do I build the library?
Posted 17-Jun-12 22:43pm
Edited 17-Jun-12 22:47pm
Maciej Los193.7K

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
coffeenet at 18-Jun-12 5:05am
I see. Is there a time package somewhere I can download and unpack instead of downloading each file separately?
Richard MacCutchan at 18-Jun-12 5:08am
A time package for what? You cannot use any packages unless you have the full compiler and library to start with.
Richard MacCutchan at 18-Jun-12 5:11am
Take a look at the GLIBC downloads page(s).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 213
1 Sergey Alexandrovich Kryukov 170
2 Inimicos 60
3 ProgramFOX 50
4 F-ES Sitecore 45
0 OriginalGriff 9,037
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100