Hi Murdoch, Thanks for your quick answer. First : I have a 32 bits R running on a 64 bits Windows. So I think I can load 32bits DLL ? I haven't understood what I must give to is.loaded as parameter : the name of the DLL, the full path to it, the name of a routine in it, the value given by dyn.load (in fact this gives an error) ? About help : the only example, for is.loaded, I found in fullrefman.pdf was about dyn.load but is ununderstandable (?) because we have not the dyn.load command in the example. And if I write ?is.loaded in R I get nothing !! Best regards Jean Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
On 22/02/2016 11:35 AM, MAURICE Jean - externe wrote:> Hi Murdoch, > > Thanks for your quick answer. > > First : I have a 32 bits R running on a 64 bits Windows. So I think I can load 32bits DLL ?Yes.> > I haven't understood what I must give to is.loaded as parameter : the name of the DLL, the full path to it, the name of a routine in it, the value given by dyn.load (in fact this gives an error) ?The name of a routine, e.g. is.loaded("supsmu") (which gives FALSE in current R).> > About help : the only example, for is.loaded, I found in fullrefman.pdf was about dyn.load but is ununderstandable (?) because we have not the dyn.load command in the example. And if I write ?is.loaded in R I get nothing !!Sounds as though you are using a very old or broken version of R. What does sessionInfo() give? You should be using R 3.2.3. If you're using an older one, you're on your own. Duncan Murdoch
Hi Murdoch, is.loaded is now working but the routine I call has a bug so I have to rebuilt it ! I am posting a new question on this mailing list ... Many thanks for your help Jean Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
Hi Murdoch, I solved my problem ! In fact, the problem is coming from Intel?s FORTRAN and a little from R : You must tell FORTRAN that parameters are sent by reference and R can only work with routine names in lower case and ending with ?_? (and this underscore must not be written in the .fortran call). So in each function in Fortran you must add these lines : !DEC$ ATTRIBUTES DLLEXPORT :: mordor_rec_OM !DEC$ ATTRIBUTES ALIAS:"mordor_rec_om_" :: mordor_rec_OM !DEC$ ATTRIBUTES C,REFERENCE :: mordor_rec_OM ! Pour "R" I am happy !! Thank you for your help Jean Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free.