Or

g++ example.cpp -L<path to library> -lglpk -o example

G.S.

Il giorno 24/lug/2013, alle ore 23:10, Raniere Silva <[email protected]> 
ha scritto:

> Hello Juan,
> 
>> I am compiling using:  g++ example.cpp -lglpk -o example
>> 
>> However, when I run the file ./example  I get:
>> 
>> error while loading shared libraries: libglpk.so.35: cannot open shared 
>> object file: No such file or directory
> 
> Your operational system can't locate the shared library. You can try
> 
>    $ LD_LIBRARY_PATH=/path/to/libglpk.so/:$LD_LIBRARY_PATH ./example
> 
> There are other ways to solve your problem. Search for"Shared Library".
> 
> Raniere
> 
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to