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