Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make gcc accept spaces in path

Tags:

windows

gcc

I'm trying to build qt5 with gcc on Windows, but I came across following problem:
I have path to directx sdk: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010), and this g++ cannot deal with it, I'm getting:
enter image description here

How to overcome this?

like image 911
smallB Avatar asked Jan 29 '13 18:01

smallB


1 Answers

It's not gcc's fault, it's your shell/terminal/builder program that's passing all of those as separate arguments. Add some "" around it on on your command line. It's already correct for the earlier copy of that -L flag on the command line you've shown.

like image 106
Carl Norum Avatar answered Sep 22 '22 12:09

Carl Norum