i use turbo c++ v3.0.
i tried to create a library and add the following
functions to it.
int prime(int);
long fact(long);
i used the standard procedure for doing so.
yet when i tried to use my functions after
including the header file i had created, a linker
error occured.
linker error : undefined symbol fact(long) in
module noname00.cpp.
now i had used 'int' in my program which means
that it had identified the function in my library, yet
it refused to work.
is it because my compiler is outdated or because
of some other flaw in the program.
for the record i had applied the procedure as
stated in yashwant kanetkar's book 'Let Us C'.
please advise on how to correctly create a user
defined library.
plzzz show with a example
i tried to create a library and add the following
functions to it.
int prime(int);
long fact(long);
i used the standard procedure for doing so.
yet when i tried to use my functions after
including the header file i had created, a linker
error occured.
linker error : undefined symbol fact(long) in
module noname00.cpp.
now i had used 'int' in my program which means
that it had identified the function in my library, yet
it refused to work.
is it because my compiler is outdated or because
of some other flaw in the program.
for the record i had applied the procedure as
stated in yashwant kanetkar's book 'Let Us C'.
please advise on how to correctly create a user
defined library.
plzzz show with a example
Comment