I have a problem while coding my program. Here is the situation:
I have a code running fine on Unix/Linux that is to be ported on Windows.
There is one dll and a client program. The main program (exe) has a common function (LogMessage()) used for logging. The same function needs to be called from the dll for logging dll messages.
On unix its easily done by shared library (using -fPIC & other stuff). However, on windows I am getting linking errors for this function. I am using vc++ 6.0.
The program compiles fine but fails during linking. The linker says:- error LNK2001: unresolved external symbol
Can anybody tell me how to solve this problem?