Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 17-Jun-12 22:47pm
v2

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900