🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.asm
Article #220

HELP: assembly & C linking woes....

#220
From: Andrew Wan
Date: Thu, 27 Sep 2007 09:47
33 lines
2225 bytes
I am having problems linking an assembly object with my C object
files. Am getting:

Linker Warning: DOSSEG directive ignored in module asm.asm
Linker Error: Undefined symbol _ASMClsV in module main.c
Linker Error: Undefined symbol VADDR in module asm.asm

In my asm.asm file I've got:

DOSSEG
.MODEL huge
.386

.DATA
EXTRN vaddr : word;

.CODE
PUBLIC ASMClsV

ASMClsV PROC Near
;bla bla
ASMClsV EndP

In main.c I've got:

extern void ASMClsV();

Am trying to link using Borland C++ 4.5 since my source files are all
16-bit. I successfully linked the same asm.asm file with a 16-bit
pascal object using Turbo Pascal 7.0. Why can't I link using Borland C+
+ 4.5 to a 16-bit C file?

Also, I used Microsoft Macro Assembler 5. Should I use Turbo Assembler?
Technical Details
Message-ID: <1190886453.807716.36860@50g2000hsm.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f7d8d,255a8560edf00aca,start
X-Google-Thread: 102bfa,255a8560edf00aca,start
X-Google-Thread: fa69e,255a8560edf00aca,start
X-Google-Thread: 10f6aa,255a8560edf00aca,start
X-Google-Thread: 1014db,255a8560edf00aca,start
X-Google-Attributes: gidf7d8d,gid102bfa,gidfa69e,gid10f6aa,gid1014db,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail
From:  Andrew Wan <andwan0@googlemail.com>
Newsgroups: alt.lang.asm,alt.msdos.programmer,borland.public.cpp.borlandcpp,comp.os.msdos.programmer,comp.lang.c
Subject: HELP: assembly & C linking woes....
Date: Thu, 27 Sep 2007 02:47:33 -0700
Organization: http://groups.google.com
Lines: 34
Message-ID: <1190886453.807716.36860@50g2000hsm.googlegroups.com>
NNTP-Posting-Host: 217.37.215.53
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1190886453 7195 127.0.0.1 (27 Sep 2007 09:47:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 27 Sep 2007 09:47:33 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 SERVERSB
Complaints-To: groups-abuse@google.com
Injection-Info: 50g2000hsm.googlegroups.com; posting-host=217.37.215.53;
   posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0