home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!james
- From: james@cs.mcgill.ca (Luc MIKISZKO)
- Newsgroups: comp.lang.c
- Subject: C and assembly linking problems ! HELP!!
- Message-ID: <C1BJ1I.8zv@cs.mcgill.ca>
- Date: 23 Jan 93 17:53:41 GMT
- Sender: news@cs.mcgill.ca (Netnews Administrator)
- Organization: SOCS - Mcgill University, Montreal, Canada
- Lines: 32
-
-
-
- Hi there,
-
- I would be sooooo glad if someone could
- please explain me what I am doing wrong:
-
- - I am trying to link assembly language
- routines with C
-
- I haven't written them myself but I know
- that ll the proper declarations in the respective
- files are correct.
-
- Here's what I did: let's say I have files:
- L1.C
- L2.ASM
-
- I do exactly this: tcc l1.c
- tasm l2
-
- Then, no problem, not a single warning or error;
-
- BUT when I link them : tlink l1 l2, exefile
-
- Then I get messages saying that functions such
- as "GETCH_", "PRINTF_" are not defined ?!?!?!?
-
- and it seems that all the assembly routines have been
- "understood".
-
- Please help me...
-