Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » plugin unable to load a native DLL
plugin unable to load a native DLL [message #202740] Thu, 11 October 2007 01:19 Go to next message
Eclipse UserFriend
Hello All,
I am creating a plugin (for use under Run--> External Tools) which has
some implementation in native C.
The C implementation is available as a DLL.

When i run this plugin application from run-time as a Eclipse application,
i can load the DLL successfully and call the functions in the DLL.

When i generate a plugin and use it, i get error while loading the DLL.
I tired with both the methods below:
System.load(filename)
System.loadLibrary(libname)

Is there any problem with using native libraries with plugin.

Please give me some hint to resolve this issue.

Thanks for your time.

Thanks and regards
Raghavendra.
Re: plugin unable to load a native DLL [message #203147 is a reply to message #202740] Fri, 19 October 2007 12:11 Go to previous message
Eclipse UserFriend
Originally posted by: eclipsenews.richardmiskin.plus.com

There isn't a problem using native code from within a plugin - that's how
the SWT toolkit is implemented.

What error are you getting when you try and load the library?
Are you including the DLL in the exported plugin?

Richard

"Raghavendra" <tsrrao@tataelxsi.co.in> wrote in message
news:b8609d3337d11cd6624a09be56a9cb7d$1@www.eclipse.org...
> Hello All,
> I am creating a plugin (for use under Run--> External Tools) which has
> some implementation in native C.
> The C implementation is available as a DLL.
>
> When i run this plugin application from run-time as a Eclipse application,
> i can load the DLL successfully and call the functions in the DLL.
>
> When i generate a plugin and use it, i get error while loading the DLL.
> I tired with both the methods below:
> System.load(filename)
> System.loadLibrary(libname)
>
> Is there any problem with using native libraries with plugin.
>
> Please give me some hint to resolve this issue.
>
> Thanks for your time.
>
> Thanks and regards
> Raghavendra.
>
Previous Topic:Relative path to sources in CDT
Next Topic:Preprocessor directives
Goto Forum:
  


Current Time: Tue May 13 05:13:50 EDT 2025

Powered by FUDForum. Page generated in 0.03165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top