linking problems - 'undefined reference' errors
i am using DJGPP cross-compiler to compile and run C/C++ files in windows on a linux platform. However it is showing 'undefined reference' errors for some library functions(user-defined), contained in a file called 'libgmlib.a' - i dont have the C source for those functions and so cannot rebuild the library. A file called 'gmlib.h' has the declarations for these functions.
i tried giving both the path of the lib directory (-L<pathname>) as well as
'-lgmlib' in the command line. but the same errors still appear.
It compiles upto the object files(using -c option) and has problems only while linking.
I dont understand why it cant read the library - it appears so simple!
I have successfully compiled and run simple c++ programs using the DJGPP - so i guess the problem is not with the compiler.