Bug #17967 2011-02-27 14:20

alexroat

Space in path (includes) not correctly handled

Setup: C::B on windows Vista with Mingw32 bundled.

Reference: in the "Build Options" contextual menu of a project, "Search Directories".

Description: If I try to add a path with spaces (e.g.: ...\Program Files\...) in include directory tab (Compiler) this is not correctly parsed.

Even protecting the path string as "...\Program Files\..." the error still remains.

Trying to compile by command line with Mingw32 I get the same error but I can solve protecting the pathname with "". So the problem is related to C::B, not to Mingw32.

Example:

Adding "C:\Program Files\OpenCV2.2\include\opencv" in build options...->search directories->compiler, I get the error in output:

Compiling: main.cpp

mingw32-g++.exe: Files\OpenCV2.2\include\opencv -c C:\Users\alex\Documenti\cb_projects\OpenCVcamera\main.cpp -o obj\Debug\main.o: Invalid argument

mingw32-g++.exe: no input files

Considerations:

As you can see, a part of the directory is taken as argument, ignoring eventual protection.

I suppose the problem is in a pre-parsing of the path done by C::B before the passing to Mingw32.

The best practise to avoid pathnames without spaces is sometime unfeasable beacuse of access rights (not everybody are Administrator that can install libraries where they want).

Category
 
Group
 
Status
Open
Close date
 
Assigned to