home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6529 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.4 KB  |  50 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!news.duc.auburn.edu!eng.auburn.edu!tdukes
  3. From: tdukes@eng.auburn.edu (Todd J Dukes)
  4. Subject: EMX link ERRORS
  5. Message-ID: <tdukes.921118111315@ohm.ee.eng.auburn.edu>
  6. Followup-To: email
  7. Sender: usenet@news.duc.auburn.edu (News Account)
  8. Nntp-Posting-Host: ohm.ee.eng.auburn.edu
  9. Organization: Auburn University Engineering
  10. Date: Wed, 18 Nov 1992 17:13:15 GMT
  11. Lines: 37
  12.  
  13. I am trying to make the switch to EMX from GCC/2. I read the documentation
  14. that comes with EMX and am trying to make a simple program I wrote
  15. when I started using GCC/2. It compiles fine, but when linking there
  16. are several link errors (I believe it is all of the PM functions).
  17. I have included my make file below. Does anybody have any suggestions?
  18.  
  19. Thanks
  20. Todd
  21. tdukes@eng.auburn.edu
  22.  
  23.  
  24. CC=gcc
  25. CFLAGS=-c -I/TOOLKT20/C/OS2H
  26.  
  27. OBJS= stdmain.o winproc.o getfile.o process.o
  28.  
  29. pmdraw.exe: $(OBJS) pmdraw.def pmdraw.res
  30.     gcc -o pmdraw.exe $(OBJS) pmdraw.def pmdraw.res -los2 -lgpp
  31.  
  32. stdmain.o: stdmain.cc winproc.h
  33.     $(CC) $(CFLAGS) stdmain.cc
  34.  
  35. winproc.o: winproc.cc winproc.h
  36.     $(CC) $(CFLAGS) winproc.cc
  37.  
  38. getfile.o: getfile.cc getfile.h
  39.     $(CC) $(CFLAGS) getfile.cc
  40.  
  41. process.o: process.cc process.h
  42.     $(CC) $(CFLAGS) process.cc
  43.  
  44. pmdraw.res: pmdraw.rc pmdraw.ico
  45.     rc -r -i \toolkt20\c\os2h pmdraw
  46.  
  47. clean:
  48.     del *.o *.s *.map *.res *.exe
  49.  
  50.