Solved

Linking Turbo C modules with TASM modules

Posted on 1997-05-08
3
573 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to align numbers in C using the %d 2 89
UPD maximums on Red Hat 6 110
Problem to show menu 5 87
smtp c source code 7 40
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now