Can someone please give me a complete description on how you link Turbo C modules with TASM modules? I keep getting "Undefined symbol" messages in Turbo C (I'm trying to link a TASM module into my Turbo C program).
I am getting ready to go home, so I thought that I would dump all the various possibilities that I could think of and let you see what is what.
Is the assembly module of your own creation:
do you have underscores in front of any external labels?
are you assembling with the /ml switch to preserve case?
In the function prototype, do you declare it 'extern "C" '?
If the librariy is not of your creation, and a quick look with a binary editor shows that the functions are all in upper case, you can either swtich your function names (prefereable) or set the linker to be case insensitive.
Are you getting a large number of UNDEFINED SYMBOL messages?
Would you give an example of the message that you receive as well as the function that you intend to call?
It is probably a matter of ornamentation or case.
0
JelloAuthor Commented:
Perfect... it works fine now. I wasn't using the /ml option on TASM. Thanks a lot. :)
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Is the assembly module of your own creation:
do you have underscores in front of any external labels?
are you assembling with the /ml switch to preserve case?
In the function prototype, do you declare it 'extern "C" '?
If the librariy is not of your creation, and a quick look with a binary editor shows that the functions are all in upper case, you can either swtich your function names (prefereable) or set the linker to be case insensitive.