🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.open-look
Article #2876

How to link DevGuide w/ c AND FORTRAN?

#2876
From: Lauri Valsta
Date: Tue, 12 Jan 1993 15:14
23 lines
1243 bytes
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                 |
Technical Details
Message-ID: <1993Jan12.151417.23949@kuusi.metla.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!kuusi.metla.fi!valsta

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.open-look
Path: arc1-ca.pugleaf.net!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