Click here to Skip to main content
13,139,254 members (92,232 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Updated 17-Jun-12 22:47pm
Maciej Los255.6K

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 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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2017
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