🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #64

mbuilder

#64
From: William Scott Heyman
Date: Thu, 30 Jul 1992 18:57
41 lines
1567 bytes
I am trying to use mbuilder to turn a trivial c subroutine into a
module:

void test(x,y)
double x, y;
{
  y = x*x;
}

I used no input ports and set x=3.0 using the <<Constant Value>> in
the connection window. 

The double value of y was sent to an output port "y out" which was 
defined a parameter in the output ports window.

Here is the error I get

--- test.mdw.o ---
        /usr/explorer/lib/cxMdw test

Creating Module Data Wrapper subprogram from modules resources
in file ./test.mres.
Module Builder: Module resources missing field of output port.
Port number 0, Expected field cxP_Out_y_out->type, Found field
->p.cx_param_double.val
 
Module Builder: Error: Exiting MDW code generator.
 
*** Error code 255
smake: 1 error



Could someone explain what I am doing wrong, what general concept I am
not grasping? I am trying to make as simple a module as possible and
then build up from there. I followed the example (Gradient3D) in the
_Explorer_Module_Writer's_Guide" and of course it worked, but it was
in FORTRAN and pretty complicated.

Thanks
Will Heyman		wsh8z@virginia.edu	UVA Applied Math
Technical Details
Message-ID: <1992Jul30.185746.2340@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!swrinde!mips!darwin.sura.net!uvaarpa!murdoch!kelvin.seas.Virginia.EDU!wsh8z

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!swrinde!mips!darwin.sura.net!uvaarpa!murdoch!kelvin.seas.Virginia.EDU!wsh8z
From: wsh8z@kelvin.seas.Virginia.EDU (William Scott Heyman)
Newsgroups: comp.graphics.explorer
Subject: mbuilder
Message-ID: <1992Jul30.185746.2340@murdoch.acc.Virginia.EDU>
Date: 30 Jul 92 18:57:46 GMT
Sender: usenet@murdoch.acc.Virginia.EDU
Organization: University of Virginia
Lines: 41