| www.delorie.com/archives/browse.cgi | search |
| Date: | Fri, 05 Jan 2001 20:10:40 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-Id: | <8361-Fri05Jan2001201040+0200-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
| In-reply-to: | <934tdg$oj0$1@nnrp1.deja.com> (pixelpajas@my-deja.com) |
| Subject: | Re: Nasm & Gcc. HELP! |
| References: | <934tdg$oj0$1 AT nnrp1 DOT deja DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: pixelpajas AT my-deja DOT com
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 05 Jan 2001 16:40:17 GMT
>
> extern unsigned int keyget(unsigned int);
>
> void main(void)
> {
> keyget(1);
> }
>
> - lib.asm -------------------------------------
>
> [BITS 32]
> [GLOBAL _key]
> [SECTION .text]
>
>
> _key: MOV CX,1
This should be _keyget.
> then i compile 4k.c -> gxx -nostdlib -nostdinc -
> fno-builtin -fno-exceptions -c -O3 4k.c -r
You should use gcc, not gxx.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |