home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 5028 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!mcsun!news.funet.fi!kuusi.metla.fi!valsta
  3. From: valsta@kuusi.metla.fi (Lauri Valsta)
  4. Subject: How to link DevGuide w/ c AND FORTRAN?
  5. Message-ID: <1993Jan12.151417.23949@kuusi.metla.fi>
  6. Organization: Metsantutkimuslaitos
  7. Date: Tue, 12 Jan 93 15:14:17 GMT
  8. Lines: 23
  9.  
  10. I would like to use blocks of FORTRAN code w/ an interface generated by
  11. DevGuide. So along with the GUI I need to link both c and FORTRAN object
  12. modules. (In the xxxx_stubs.c file I call my FORTRAN routines from c.)
  13. According to Sun FORTRAN manual, I would need to call f77 in the linking
  14. stage to get the correct libraries (for FORTRAN, I presume). However,
  15. the DevGuide makefile calls cc (?) and I get error messages (due to the
  16. FORTRAN subroutines) in the linking stage, such as:
  17.  
  18. ld: Undefined symbol 
  19.    _e_wsle 
  20.    _do_l_out 
  21.    _s_wsle 
  22. *** Error code 2. 
  23.  
  24. Is it possible to edit the makefile so that the relevant FORTRAN
  25. libraries get included in linking, or should I try to use f77 linker
  26. with DevGuide (and c ?) libraries to get the job done?
  27.  
  28. Thanks for any help,
  29.  
  30. -- 
  31. | Lauri T. Valsta   Finnish Forest Research Institute |
  32. | valsta@metla.fi   Helsinki, Finland                 |
  33.