linking own library
I have created a own library using " ranlib " in UNIX ...
i have got a " libmymath.a" library ... i tried to use it ina program named " prog.c " .. but it is not working.. iam using ... gcc -o prog -L. -mymath prog.o It is giving an error that the functions used are not found... should i give any header file or so in the program to use my own l library ??? -- awaiting reply -- --thanx in advance -- |
Quote:
gcc -o prog -L. -lmymath prog.o |
Quote:
So, in short: yes, you need a header file. But I don't think that's solves the problem you describe. |
All times are GMT -5. The time now is 05:16 AM. |