Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Linux time
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?
Posted 17-Jun-12 22:43pm
Edited 17-Jun-12 22:47pm
Maciej Los142.3K
v2

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
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)



Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2014
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