Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Maks Romih — — source: Informix-list mailing list archive (1991-1998)
Hi!
I've linked static libs into NewEra without problems.
How do you call a static lib function?
Suppose I have the function "callee", that is implemented in a static lib
and I want to call it from the NewEra function CALLER. Then I write in
C.4GL :
-- Declare an external function
BEGIN_C
void callee();
END_C
--
-- . . .
--
FUNCTION CALLER() RETURNING VOID
BEGIN_C
--
-- . . .
--
-- Call an external function
callee();
--
-- . . .
--
END_C
END FUNCTION
If you still have problems, please make the called static lib as small as
possible with maybe just one entry point and then try to call it from a
program as simple as possible. If you still have problems, you can
"dissect" the generated .MAK file and try to link the program by hand. If
you still have problems, ask here again.
Maks Romih
Ljubljana
Slovenia
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.