🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #8108

How do I link Assembly routines with C?

#8108
From: Richard Stanton
Date: Tue, 05 Dec 1989 18:51
18 lines
973 bytes
I recently downloaded a program off SIMTEL that was written in C,
and called two assembly language routines. The assembly code
contained the line

PUBLIC [names of routines]

but when I compiled the C program and tried to link it with the
object file from the .ASM code, I got a message telling me I had two
unresolved external references, even though the two names exactly
matched the names defined in the .ASM source.

What am I missing? I am using MS Quick C (v2), and MASM 3.0.

Thanks

Richard Stanton

pstanton@gsb-what.stanford.edu
Technical Details
Message-ID: <6237@lindy.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!decwrl!shelby!lindy!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!decwrl!shelby!lindy!news
From: LC.YRS@forsythe.stanford.edu (Richard Stanton)
Newsgroups: comp.sys.ibm.pc
Subject: How do I link Assembly routines with C?
Message-ID: <6237@lindy.Stanford.EDU>
Date: 5 Dec 89 18:51:11 GMT
Sender: news@lindy.Stanford.EDU (News Service)
Lines: 18