Re: Unable to get a plugin working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hristina Fidanoska <fidanconscious@xxxxxxxxxxxxxx> writes:

> For the use of a plugin in our project, I have installed the latest
> GCC version (gcc-4.5-20100211)
> and I configured it using the options:
>
>  --enable-languages=c,c++ --enable-plugin --prefix=/opt/<plugin>
>
> Now after compiling the plugin, I get an error when linking:
>
> cc1plus: error: Cannot load plugin ../libimo/libimo.so
>
> /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../libimo/libimo.so)
>
> make: *** [default] Error 1
>
>
> Browsing threads for similar problems, I read that a quick fix would
> be to set the LD_LIBRARY_PATH to point to the directory where
> libstdc++ is located,  in my case
>
> LD_LIBRARY_PATH=/usr/lib/libstdc++.so.6.0.13
>
> LD_LIBRARY_PATH=/usr/lib/libstdc++.so.6

LD_LIBRARY_PATH must include the name of a directory, not the name of
a file.  That directory will be searched first for shared libraries.

In your case you want to set it to the directory where the newly built
libstdc++.so was installed.  This will be somewhere under the --prefix
option you used when you configured gcc.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux