home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18157 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.1 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usc!sdd.hp.com!hp-col!chrism
  3. From: chrism@col.hp.com (Chris Magnuson)
  4. Subject: C and Assembly Help Needed
  5. Sender: news@col.hp.com (Usenet News)
  6. Message-ID: <1992Nov9.011203.28367@col.hp.com>
  7. Date: Mon, 9 Nov 1992 01:12:03 GMT
  8. Organization: HP Colorado Springs Division
  9. Lines: 38
  10.  
  11. I'm trying to merge C and assembly files together in the same MPW
  12. project.  When I compile I get:
  13.  
  14.       C -r -sym on,novars,notypes  main.c
  15.       Asm -sym on Init.a
  16.       Link -t APPL -c '????' -sym on -mf main.c.o Init.a.o...etc...
  17. ### Link: Error: Undefined entry, name: (Error 28) "InitReg"
  18.   Referenced from: InitGlobals in file: main.c.o
  19.   
  20. My assembly file looks like:
  21.  
  22.     TITLE 'Init'
  23.     BLANKS OFF
  24.     PRINT OFF
  25.     MACHINE  MC68000       ;pick 68000 target
  26.     
  27.     
  28. InitReg    PROC EXPORT
  29.     
  30.         ;  instructions in here
  31.         
  32.         RTS
  33.         
  34.         ENDPROC
  35.         
  36.         END
  37.         
  38. And in the main.c source I have:
  39.  
  40. extern void InitReg(void);
  41.  
  42. I must be doing something real stupid, anyone see what it is? e-mail
  43. would be great.
  44.  
  45. Thanks,
  46. Chris Magnuson
  47. chrism@col.hp.com
  48. (719) 590-2963
  49.