I am using VW7.4.1 CExternalInterface and try to load a Windows-XP dll.
I always get the error message: 'Could not load library' and cannot figure out why. Has anybody out there experience with:
Karl __________________________________________________________
|
BREITH Karl-Albert FDEEC (AREVA NP GmbH) wrote:
> > > I am using VW7.4.1 CExternalInterface and try to load a Windows-XP dll. > This dll is created under CYGWIN using gcc. > > I always get the error message: 'Could not load library' and cannot > figure out why. > Could it be that the dll needs other dlls from the Cygwin directory. If so it might be that the environment VW is running in does not have Cygwin in its library search path. R - > Has anybody out there experience with: > - creating a dll under CYGWIN and > - loading that into VW7.4.1 > > Karl > > __________________________________________________________ > Karl Breith > *AREVA NP GmbH* > Methods & Codes (FDEEC-G) > > Freyeslebenstraße 1 > 91058 Erlangen > Phone: +49 (0) 9131 18-97393 > Fax: +49 (0) 9131 18-94045 > mail to: _Karl-Albert.Breith@areva.com_ > <mailto:[hidden email]> > An AREVA and Siemens company > > Vorsitzender des Aufsichtsrats: Bertrand Durrande - Geschäftsführer: > Dr. Ralf Güldner, Rüdiger Steuerlein > Sitz der Gesellschaft: Erlangen - Registergericht: Fürth, HRB 7817 - > _www.areva-np.com_ <http://www.areva-np.com> > > /Wichtiger Hinweis: Diese E-Mail kann Betriebs- oder > Geschäftsgeheimnisse, bzw. sonstige vertrauliche Informationen > enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist > Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder > Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen > Sie uns und vernichten Sie die empfangene E-Mail.// Vielen Dank./ > > > /Important Note: This e-mail may contain trade secrets or privileged, > undisclosed or otherwise confidential information. If you have > received this e-mail in error, you are hereby notified that any > review, copying or distribution of it is strictly prohibited. Please > inform us immediately and destroy the original transmittal. Thank you > for your cooperation./ > |
Your proposal as well as that of Traude Manz was that there might be cygwin.dll missing. I have copied cygwin.dll as well as libgcc.a to the system directory - still, I get the error 'Could not load library'. Any other idea ? Karl __________________________________________________________ Karl Breith AREVA NP GmbH Methods & Codes (FDEEC-G) Freyeslebenstraße 1 91058 Erlangen Phone: +49 (0) 9131 18-97393 Fax: +49 (0) 9131 18-94045 mail to: [hidden email] An AREVA and Siemens company -----Ursprüngliche Nachricht----- Von: Reinout Heeck [mailto:[hidden email]] Gesendet: Mittwoch, 1. August 2007 12:36 An: VWNC, Betreff: Re: Loading Windows DLL into VW7.4.1 BREITH Karl-Albert FDEEC (AREVA NP GmbH) wrote: > > > I am using VW7.4.1 CExternalInterface and try to load a Windows-XP dll. > This dll is created under CYGWIN using gcc. > > I always get the error message: 'Could not load library' and cannot > figure out why. > Could it be that the dll needs other dlls from the Cygwin directory. If so it might be that the environment VW is running in does not have Cygwin in its library search path. R - > Has anybody out there experience with: > - creating a dll under CYGWIN and > - loading that into VW7.4.1 > > Karl > > __________________________________________________________ > Karl Breith > *AREVA NP GmbH* > Methods & Codes (FDEEC-G) > > Freyeslebenstraße 1 > 91058 Erlangen > Phone: +49 (0) 9131 18-97393 > Fax: +49 (0) 9131 18-94045 > mail to: _Karl-Albert.Breith@areva.com_ > <mailto:[hidden email]> > An AREVA and Siemens company > > Vorsitzender des Aufsichtsrats: Bertrand Durrande - Geschäftsführer: > Dr. Ralf Güldner, Rüdiger Steuerlein > Sitz der Gesellschaft: Erlangen - Registergericht: Fürth, HRB 7817 - > _www.areva-np.com_ <http://www.areva-np.com> > > /Wichtiger Hinweis: Diese E-Mail kann Betriebs- oder > Geschäftsgeheimnisse, bzw. sonstige vertrauliche Informationen > enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist > Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder > Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen > Sie uns und vernichten Sie die empfangene E-Mail.// Vielen Dank./ > > > /Important Note: This e-mail may contain trade secrets or privileged, > undisclosed or otherwise confidential information. If you have > received this e-mail in error, you are hereby notified that any > review, copying or distribution of it is strictly prohibited. Please > inform us immediately and destroy the original transmittal. Thank you > for your cooperation./ > |
On Aug 1, 2007, at 3:45, BREITH Karl-Albert FDEEC ((AREVA NP GmbH)) wrote:
One of the things that burned me in a similiar situation before was that the DLL I was trying to load depended on other DLLs which were unloadable/unreachable. So though the system was telling me that the DLL I was trying to load was unloadable, in reality it was indeed locatable and loadable, pieces it depended on were not. I don't know what else cygwin.dll relies on, but that *may* be your case. -- Travis Griggs Objologist "I choose. Therefore, I Am" |
In reply to this post by BREITH Karl-Albert (AREVA)
I’ve ran into a similar situation a
while ago and used a tool called ‘DLL Explorer’ (I think) to find
out what other DLLs are required by a DLL (not cygwin). I think it’s
shareware (30 days trial) so you could give it a try. It solved the problem in
my case. From: Travis Griggs
[mailto:[hidden email]] On Aug 1, 2007, at 3:45, BREITH Karl-Albert FDEEC ((AREVA NP GmbH))
wrote:
Your proposal as well as that of Traude Manz was that there might be cygwin.dll missing. I have copied cygwin.dll as well as libgcc.a to the system directory - still, I get the error 'Could not load library'. One of the things that burned me in a similiar situation before was
that the DLL I was trying to load depended on other DLLs which were
unloadable/unreachable. So though the system was telling me that the DLL I was
trying to load was unloadable, in reality it was indeed locatable and loadable,
pieces it depended on were not. I don't know what else cygwin.dll relies on,
but that *may* be your case. -- Travis Griggs Objologist "I choose.
Therefore, I Am"
|
There is a tool called Dependency walker(was part of Win2k resource
kit), which tells you all the dependencies. Also it can be used to run your application and see what libraries are being loaded, when and what is being asked of them - very neat. http://www.dependencywalker.com/ -Mark Mark Plas wrote: > I’ve ran into a similar situation a while ago and used a tool called > ‘DLL Explorer’ (I think) to find out what other DLLs are required by a > DLL (not cygwin). I think it’s shareware (30 days trial) so you could > give it a try. It solved the problem in my case. > > > > ------------------------------------------------------------------------ > > From: Travis Griggs [mailto:[hidden email]] > Sent: woensdag 1 augustus 2007 17:45 > To: VW NC > Subject: Re: AW: Loading Windows DLL into VW7.4.1 > > > > On Aug 1, 2007, at 3:45, BREITH Karl-Albert FDEEC ((AREVA NP GmbH)) wrote: > > > > > > Your proposal as well as that of Traude Manz was that there might be > > cygwin.dll missing. > > I have copied cygwin.dll as well as libgcc.a to the system directory - > > still, I get the error 'Could not load library'. > > > > One of the things that burned me in a similiar situation before was that > the DLL I was trying to load depended on other DLLs which were > unloadable/unreachable. So though the system was telling me that the DLL > I was trying to load was unloadable, in reality it was indeed locatable > and loadable, pieces it depended on were not. I don't know what else > cygwin.dll relies on, but that *may* be your case. > > > > -- > > Travis Griggs > > Objologist > > "I choose. Therefore, I Am" > > > > > |
Thanks a lot for all your answers to my question. I downloaded the 30 day trial version of 'DLL Explorer' and detected actually missing *.dll files. After I have installed those, I finally succeeded in loading the dll I wanted to. Everything works now fine. Again, thanks a lot, all your hints were very valuable. Karl __________________________________________________________ Karl Breith AREVA NP GmbH Methods & Codes (FDEEC-G) Freyeslebenstraße 1 91058 Erlangen Phone: +49 (0) 9131 18-97393 Fax: +49 (0) 9131 18-94045 mail to: [hidden email] An AREVA and Siemens company |
Free forum by Nabble | Edit this page |