exporting functions from .gp file

Edward Di Geronimo Jr. (edwdig@bergen.org)
Thu, 5 Sep 1996 00:09:32 -0400

Glue refuses to export my functions from my Preferences Module. If I don't
try to export them in the .GP file, then it links fine but Preferences
doesn't find the module. Here's the error message, followed by the entire
glue output, my .GP file (comments stripped), and then the prototypes for
the functions I'm exporting:

Error MIXERP.GP 74: MixerGetPrefUITree undefined
Error MIXERP.GP 75: MixerGetModuleInfo undefined

- ---

glue -Og MIXERP.GP -P 2.0 -R 0.0.0.0 -z -m -LD:\PCGEOS\INCLUDE\LDF -N
Edward\20Di\20Geronimo\20Jr. -L mixerp -T 1 -o MIXERP.GEO MIXERC.OBJ DSP.OBJ MI
XER.OBJ -lD:\PCGEOS\INCLUDE\LDF\BORLAND.OBJ
Error MIXERP.GP 74: MixerGetPrefUITree undefined
Error MIXERP.GP 75: MixerGetModuleInfo undefined
Resource Size # Relocs
- -------------------------------------------------
CoreBlock 0 0
dgroup 160 16
MIXERC_TEXT 1672 6
DSP_TEXT 185 0
MIXER_TEXT 843 51
INTERFACE 1672 1
APPMONIKER2RESOURCE 164 1
APPMONIKER1RESOURCE 316 1
APPMONIKER0RESOURCE 1664 1

Total size: 6676 bytes Fixed size: 160 bytes
Uninitialized data/stack: 8 bytes

*** Error code -1

Stop.

- ---

name mixerp.lib
longname "Mixer Module"
type library, single
tokenchars "PFMX"
tokenid 16462

#started with the hello3.gp file, didn't change this (yet) as it hasn't caused
#a problem
heapspace 3644

resource INTERFACE ui-object
resource APPMONIKER0RESOURCE ui-object
resource APPMONIKER1RESOURCE ui-object
resource APPMONIKER2RESOURCE ui-object

#Preferences requires these to be exported first
export MixerGetPrefUITree
export MixerGetModuleInfo

class MixerProcessClass
export MixerDialogClass

library geos
library ui
library config

usernotes "SoundBlaster Pro Volume Control v1.0b2"

- ---

optr _pascal MixerGetPrefUITree(void);
void _pascal MixerGetModuleInfo(PrefModuleInfo *moduleInfo);

- -------------------------------------------------------------------
| "You never really understand a person until you consider things |
| from his point of view----until you climb into his skin and |
| walk around in it." |
| -- Atticus Finch, Harper Lee's "To Kill a Mockingbird" |
- -------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
- -------------------------------------------------------------------