I use full path for sysnfop1s.so, but sysnfop1s.so have dependencies fod libdrm.so ldd sysnfop1s.so libdrm.so => /my/path/to/libdrm.so BR Kolesar Andrew Haley wrote: > > Kolesar wrote: >> Thanks for answer >> >> I'm gave up from statically linked ldrmod :) >> >> But, now i have new problem :) >> >> Before dlopen(), i set LD_LIBRARY_PATH with putenv(), but i get error: >> dlopen(sysnfop1s.so) error [2]: libdrmod.so: cannot open shared object >> file: >> No such file or directory. >> >> How i can set library path where is located my library (libdrmod)? > > dlopen() takes a full pathname. dlopen("/lib/foo/bar.so"); > > Andrew. > > -- View this message in context: http://www.nabble.com/Statically-linked-shared-library-tp22478672p22541475.html Sent from the gcc - Help mailing list archive at Nabble.com.