digitalmars.D.learn - Optlink search directory path containing spaces?
- Jeremy DeHaan (18/18) Jul 16 2013 This seems kind of strange to me, but when I go to specify a
- monarch_dodra (4/22) Jul 16 2013 Any chance:
- Jeremy DeHaan (1/4) Jul 16 2013 Nope, same error.
- Jacob Carlborg (4/7) Jul 16 2013 It's a known issue.
This seems kind of strange to me, but when I go to specify a search directory for the linker I can't seem to get it to work for a path that contains spaces. I tried to put quotes around the switch like I've done for other switches, but when my program goes to link I get some strange errors. If I use something like "-L+C:\Users\Jeremy\Desktop\Search Directory\" (with the quotes) I get the errors C:\Users\Jeremy\Desktop\Search.lib Warning 2: File Not Found C:\Users\Jeremy\Desktop\Search.lib Directory.lib Warning 2: File Not Found Directory.lib It seems to do the same thing even without the space in the path if I leave the quotes around it. The only way I have gotten it to work is by not using quotes and not having any spaces in the path to the directory I want to have searched. Am I doing something wrong? Jeremy
Jul 16 2013
On Tuesday, 16 July 2013 at 10:41:51 UTC, Jeremy DeHaan wrote:This seems kind of strange to me, but when I go to specify a search directory for the linker I can't seem to get it to work for a path that contains spaces. I tried to put quotes around the switch like I've done for other switches, but when my program goes to link I get some strange errors. If I use something like "-L+C:\Users\Jeremy\Desktop\Search Directory\" (with the quotes) I get the errors C:\Users\Jeremy\Desktop\Search.lib Warning 2: File Not Found C:\Users\Jeremy\Desktop\Search.lib Directory.lib Warning 2: File Not Found Directory.lib It seems to do the same thing even without the space in the path if I leave the quotes around it. The only way I have gotten it to work is by not using quotes and not having any spaces in the path to the directory I want to have searched. Am I doing something wrong? JeremyAny chance: -L+"C:\Users\Jeremy\Desktop\Search Directory\" works?
Jul 16 2013
Any chance: -L+"C:\Users\Jeremy\Desktop\Search Directory\" works?Nope, same error.
Jul 16 2013
On 2013-07-16 12:41, Jeremy DeHaan wrote:This seems kind of strange to me, but when I go to specify a search directory for the linker I can't seem to get it to work for a path that contains spaces.It's a known issue. -- /Jacob Carlborg
Jul 16 2013