Rpath on Windows [message #1771880] |
Thu, 31 August 2017 15:18 |
Marco Di Fresco Messages: 3 Registered: August 2017 |
Junior Member |
|
|
Hi all,
I am developing a software composed by an executable and various shared libraries; all parts have their own Eclipse project.
All parts are cross-platform and each project has different build configurations for both Linux and Windows (Debug-Linux, Release-Linux. Debug-Windows, Release-Windows).
In order to run and test the executable under Eclipse, I told the project where to find the libraries: under Project properties -> C/C++ Build -> Settings -> Tool Settings -> Cross G++ Linker -> Miscellaneous I have put: -Wl,-rpath '${workspace_loc:/library-name/Debug-Linux/}' (of course it ends in ....-Windows/}' for the Windows build configurations).
The problem is that it works under Linux, but not under Windows as it complains that it can't find the libraries. If I manually copy the generated executable and libraries on a same folder, the executable works fine, but it is not very practical to do so every time I want to test a change on the libraries.
Why doesn't it works? Does rpath have a different syntax under Windows? Do I have to use a different function?
Thanks in advance.
P.S. under each compile profile I have put the appropriate configurations under Project properties -> C/C++ Build -> Settings -> Tool Settings -> Cross G++ Compiler -> Includes and Project properties -> C/C++ Build -> Settings -> Cross G++ Linker -> Libraries and indeed all the projects compile fine and, as I said, everything run fine if all executable and libraries are placed on the same folder.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds