I have a small example how linking is to be done.
Suppose i have two program named imp.c and imp1.c
imp.c contains
void arr()
{
printf("hello ajay");
}
imp1.c contains
void art()
{
printf("My name is ajay");
}
then linking of above two programs with the program imp3.c
is done as
#include<stdio.h>
#include<conio.h>
#include<g:\tc\bin\imp.cpp>
#include<g:\tc\bin\imp1.cpp>
int main(void)
{
clrscr();
printf("this is the imp one:");
art();
arr();
return(0);
}
Reputation Points: 6
Solved Threads: 9
Junior Poster in Training
Offline 90 posts
since Nov 2008