From sources-request at octave dot org Sun Oct 3 15:55:59 2004 Subject: Re: Dynamic Loading & Multiple functions. From: David Bateman To: Muthu Cc: sources at octave dot org Date: Sun, 3 Oct 2004 22:51:16 +0200 Put them all in one file and use symbolic links for the other functions... Looking in dynamic-ld.cc, you'll then see the function octave_dynamic_loader::do_load (const std::string& fcn_name, const std::string& file_name) that before trying to open another file, will do the following void *function = octave_shlib_list::search (fcn_name, oct_file, mangle_name); and if it finds the function already, loaded and the symbolic link is not to an oct-file that is newer than the last time it was loaded, will use this version. D. According to Muthu (on 10/03/04): > Greetings to OCtave members, > GNU Octave can load functions dynamically, > and Ive been using it for sometime now. > I would like to know if there is a method > to load multiple functions form the same file > without using octave_dynamic_loader::load() method? > eg: I want gtk_get() & gtk_set() functions to be > called from Octave. But currently I am using the > thing like two separate shared objects gtk_get.oct > and gtk_set.oct. This is very tedious, and memory/time > consuming. > > Can someone who knows the octave sources well explain > how dynamic loading takesplace inside the octave > interpreter. I have seen the in the fft program in the > /DLD-FUNCTIONS directory of the GNU Octave sources, we > have two dynamically loaded functions. > > Please help. > Yours Truly > Muthu. > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail -- David Bateman David dot Bateman at motorola dot com Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary