Re: MASM - declaring external dependancy only when symbol is used
- From: "rhyde@xxxxxxxxxx" <rhyde@xxxxxxxxxx>
- Date: 28 May 2007 13:32:08 -0700
On May 28, 1:27 pm, "vid...@xxxxxxxxx" <vid...@xxxxxxxxx> wrote:
hi, i'm solving same problem for MASM as mentioned here for NASM:http://www.asmcommunity.net/board/index.php?topic=25983
I need to create library header. Library exports some procedures and
data. In header, I declare procedures using "PROTO" and symbols using
"EXTERN symb:NEAR".
But I want only symbols which are actually used, to be listed as
external dependency in object file. Otherwise unused stuff gets linked
in.
PROTO works just like i want, no problem there. But EXTERN creates
dependency even when symbol is not used.
Is there some way to declare external data, that only creates
dependency if it is used?
thanks in advance
Use the externdef directive.
hLater,
Randy Hyde
.
- References:
- MASM - declaring external dependancy only when symbol is used
- From: vid512@xxxxxxxxx
- MASM - declaring external dependancy only when symbol is used
- Prev by Date: MASM - declaring external dependancy only when symbol is used
- Next by Date: If it works, this might be interesting
- Previous by thread: MASM - declaring external dependancy only when symbol is used
- Next by thread: If it works, this might be interesting
- Index(es):