From: Ferran P. <fer...@re...> - 2002-08-26 12:11:33
|
All this problems seem cause because the runtime librari is not linked with the routine, only is linked with the main program, andf the main program only is linked with the modules he needs, if it doesn't use the string is not linked with the string module (inside the libhtcobol.a). I think that a lot of problems of this kind can be resolvend if we generate the runtime as a shared object (only one file). and linke this shared object with the main programs and the routines. Another good thing about this is that we won't need to link all the executables or modules with curses libdb or libltdl. We only link this with the runtime and the porogrames only need to be linked with the runtime. I exposed this beforte summer (now is sammer in Spain) and now I will begin working on this. By now you can try to link the modules manually and link them correctly. Hudson Reis wrote: >Hi all, > >I'm had problems using string. When I use the verb string in a shared library it isn't work(isn't called from a main program). > >I'm attaching the programs below: > >sgc0000a.cob -> main program. (should be compiled as a binary) >sgc0000b.cob -> subprogram. (should be compiled as a shared library) > >Thanks. >Hudson > > -- Salutacions / Regards +---------------------------------------------------------------+ | Ferran Pegueroles Forcadell | | mailto:fer...@re... | | Tels (+34)937252106 - (+34)667658535 | | C/Unió 44 2n 2a 08201 Sabadell (BCN) | +---------------------------------------------------------------+ |