You have a MSVC++ problem.
This really isn't the appropriate forum for MSVC++ issues. (I don't mind. But some folks on this forum may have less favorable opinion of Microsoft and/or VC++.)
Check your MSVC++ compile and link options very carefully. Make sure you are not pre-binding the routines. Make sure your mangled names are the same in the two source files (which will assure they have the same calling convention). Make sure you are using "separate functions for linker".
Good luck, --Eljay