Noob tryin to make a library

This is a discussion on Noob tryin to make a library within the C++ Programming forums, part of the General Programming Boards category; I am working on a project for my class, and i am trying to put my functions into a library. ...

Noob tryin to make a library

I am working on a project for my class, and i am trying to put my functions into a library. It isnt working for some reason. here is what i have:
main file for my program:

Code:

/* Name: Shawn Pappas
CSC121-002
Program Title: My Liver for a Clock!
Levels Attempted: 1) Add (Level 1) to display the time in a pretty format with leading 0's using a simple branch
2)Add (Level 2) to display the time in American format (AM-PM, that is) as well as 24-hour format.
3)Add (Level 1) to adjust the time from Greenwich Mean Time to US Central Time.
Program Description: This program takes the number of seconds since Jan. 1st 1970 (GMT) and converts it into the
current time GMT. It also displays the current time in US Central Time. US Central Time is currently
computed as -5 GMT because of Daylight Savings Time. Otherwise the conversion would be -6.
I found the current hours by dividing the amount of seconds since Jan. 1st 1970 by how many seconds
were in an hour,then used % to figure out how many hours were remaining that were not complete days.
I did the same for minutes and seconds.
*/
#include <iostream>
#include <ctime>
#include "timegmt.h"
using namespace std;
int main()
{
short hour_gmt, min, sec;
const short sec_hour = 60*60, sec_min = 60, hour_day = 24;
string colon = ":";
time_t seconds;
seconds = time (NULL);
hour_gmt = (seconds/sec_hour)%hour_day; // Calculates the currnet hours GMT
min = (seconds/sec_min)%sec_min; // Calculates the current minutes GMT
sec = seconds%sec_min; //Calculates the current seconds GMT
cout << endl << "The current time in GMT is " << hour_gmt << colon;
lead_0(min);
cout << min << colon;
lead_0(sec);
cout << sec << ".";
// American Standard Time format AM/PM
cout << " (";
hour_ast(hour_gmt);
lead_0(min);
cout << min << colon;
lead_0(sec);
cout << sec;
am_pm(hour_gmt);
// Convert to Central Time
cout << "The current time CST (Central Standard Time) is ";
cout << conv_cst(hour_gmt) << colon;
lead_0(min);
cout << min << colon;
lead_0(sec);
cout << sec << colon;
// CST American Standard Time format AM/PM
cout << " (";
hour_ast(conv_cst(hour_gmt));
lead_0(min);
cout << min << colon;
lead_0(sec);
cout << sec;
am_pm(conv_cst(hour_gmt));
return 0;
}