Subj : beginners linking problem To : borland.public.cpp.borlandcpp From : "cory" Date : Fri Sep 05 2003 02:03 pm I am writing code to do mathematics only - nothing special. Here is a cartoon version of what I want to do. I'm going to add two numbers!!!! My main program "main.c" looks like this: #include #include #include #include #include "tf.h" int main() { double a; double b; double c; a=.2; b=.4; c = tf(a,b); printf("c = %f\n",c); getch(); return 0; } The function tf.c looks like this: double tf(double a, double b) { double r; r = a + b; return r; } The header file "tf.c" just contains the function declaration. If I include the function in my main file, it works fine. However, as is, I get the error Error: Unresolved external _tf referenced from module main.c This has got to be really simple, but damn if I can find an answer. .