borland 5.02 undefined symbol when using header files
Posted on 2011-02-25
I'm using borland 5.02 by creating a project of 16 bit (DOS standard) <== don't think what kind of project will make a difference with my problem but I need this to handle far pointers
anyway my problem is I included the header in my main program file of file1.cpp
using #include "file2.h"
the header file file2.h has a prototype of a function in file2.cpp
my problem is after I created a new project I added the file1.cpp to my project and have
the header file in the same folder as my file1.cpp file will do the trick
compiling goes fine without a problem
linking print the following message
"undefined symbol func() in module file1.cpp"
I don't understand I did include file2.h in my main program file1.cpp
can you please give me steps how to handle this
as I have tried to add header to project by using add node and then add the file2.h
but still didn't fix my problem, and also tried to add the file2.obj but also didn't fix my problem
can someone suggest a solution please...