Re: [Mingw-w64-public] Relative path linking

2012-10-26 Thread Mark Dootson
Hi, You can also do it with manifests. The example attached manifests allow an executable in directory c:\bin to load libstdc++-6.dll and libgcc_s_sjlj-1.dll from a subdirectory. Nothing is needed other than the manifests. The subdirectory is not on the PATH. The directory and file structure

Re: [Mingw-w64-public] Relative path linking

2012-10-26 Thread Kai Tietz
2012/10/26 Алексей Павлов : > Hi! > Can I link program with shared library that not in PATH by relative path on > windows? I have structure like below: > > ORIGIN > |- bin > | \-program.exe > |- opt > | |-lib > | | \-mylib.dll Yes, this is possible. But DLL loading mechanism wor

[Mingw-w64-public] Relative path linking

2012-10-26 Thread Алексей Павлов
Hi! Can I link program with shared library that not in PATH by relative path on windows? I have structure like below: *ORIGIN |- bin | \-program.exe |- opt | |-lib | | \-mylib.dll* I try to add arguments to LDFLAGS *Wl,-rpath,'../opt/lib' -L/path/to/lib -lmylib* But without su