Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linking Turbo C modules with TASM modules

Posted on 1997-05-08
3
578 Views
Last Modified: 2010-08-05
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).
0
Comment
Question by:Jello
  • 2
3 Comments
 
LVL 4

Expert Comment

by:emmons
ID: 1250299
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
 
LVL 4

Accepted Solution

by:
emmons earned 100 total points
ID: 1250300
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.
0
 

Author Comment

by:Jello
ID: 1250301
Perfect... it works fine now.  I wasn't using the /ml option on TASM.  Thanks a lot. :)

0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question