Subj : Linking a lib file To : borland.public.cpp.borlandcpp From : Steven Harris Date : Fri May 21 2004 10:26 am Im having problems linking a .lib file into my code. I keep getting the linker error 'unresolved external'. My question is, basically, if I have a C file called mymain.c which calls a function defined in a lib file called mymessage.lib then how can I compile and link (free borland command line compiler bcc32 and linker ilink32) this without getting an unresolved external linker error. The function in mymessage.h is defined as: extern void outputMsg(void); mymessage.lib is a library I have built myself so it may be that im not doing this correctly. If I just compile the mymessage.obj file then compile both mymain.c and mymessage.obj then it works fine. But I want to be able to use the lib file. Any suggestions? Thanks in advance, Steven .