Isn't your module called "magci" and not "test"? As your error indicates it's looking for "TEST" in your GCI library. From the GCI documentation:
On Windows platforms: Enter the name of the library file that you created in the gcidir directory in "Preparing the Subroutine" on page 5, without its .lib suffix. For example, if your library name is gci_subs.lib, enter the module name gci_subs. If you do not supply a value, it defaults to the value you entered at the Subroutine name: prompt. If you want to define a system call to functions defined in the Microsoft Win32 API, you must specify the module name as Win32. Regards, David -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Little Sent: Thursday, 6 November 2008 1:26 PM To: [email protected] Subject: [U2] Need help with GCI system I'm attempting to use the GCI system and I'm having trouble getting it to work. I'm working on Windows Server 2003 and UV10.2 Here's what I've done : Create a small function in C: int getSum(int, int) Compile the function and create a lib from the object file. Copy the lib over to UV/gcidir Login to the UV account and run GCI.ADMIN Created a new GCI definition file called MAGCI file using option 1 Defined the new function this way: Subroutine name: getSum (the name I want to be able to call in UV) Language: c External Name: getSum (the actual name of the C function) Module Name: test (the library name which contains the function) one int type output and two int type arguments for input Compiled the items in the new CGI file with admin option #5 Installed the new DLL and re-logged in to the UV account Wrote a UV subroutine to use the new function: DECLARE GCI getSum PRINT getSum(2,3) And I get the following error: Error 126 loading GCI library e:\IBM\UV\bin\magci.dll. The specified module could not be found. Program "TEST": Line 2, Invalid GCI subroutine. I think that I'm missing something key here, but I don't know what it is. I'd appreciate any help here. Thanks -bob ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
