home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20120 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.0 KB

  1. Path: sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!james
  2. From: james@cs.mcgill.ca (Luc MIKISZKO)
  3. Newsgroups: comp.lang.c
  4. Subject: C and assembly linking problems ! HELP!!
  5. Message-ID: <C1BJ1I.8zv@cs.mcgill.ca>
  6. Date: 23 Jan 93 17:53:41 GMT
  7. Sender: news@cs.mcgill.ca (Netnews Administrator)
  8. Organization: SOCS - Mcgill University, Montreal, Canada
  9. Lines: 32
  10.  
  11.  
  12.  
  13.     Hi there,
  14.  
  15.         I would be sooooo glad if someone could
  16.         please explain me what I am doing wrong:
  17.  
  18.         - I am trying to link assembly language
  19.         routines with C
  20.  
  21.         I haven't written them myself but I know
  22.         that ll the proper declarations in the respective
  23.         files are correct.
  24.  
  25.         Here's what I did: let's say I have  files: 
  26.         L1.C
  27.         L2.ASM 
  28.  
  29.         I do exactly this:   tcc l1.c
  30.                      tasm l2
  31.  
  32.         Then, no problem, not a single warning or error;
  33.  
  34.         BUT when I link them : tlink l1 l2, exefile
  35.  
  36.         Then I get messages saying that functions such
  37.         as "GETCH_", "PRINTF_" are not defined ?!?!?!?
  38.  
  39.         and it seems that all the assembly routines have been
  40.         "understood".
  41.  
  42.                         Please help me...
  43.