HaxeFoundation / HaxeFoundation/hxcpp

hxcpp does not quote -I paths with spaces

Open
#1,097 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

When compiling to c++ with this build file:

```
-cpp cpp
-main ThreadTraceHangHL
--class-path src

--next

--run .\cpp\ThreadTraceHangHL.exe
```

I get this error:

```
Compiling group: haxe
cl.exe -Iinclude -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdD:\UserData\USER\Code\Haxe\haxe-threading-examples\haxe\cpp\obj/msvc19/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -arch:SSE2 -ID:/Program Files/HaxeToolkit433/haxe/lib/hxcpp/4,3,2/include -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe)
-DHXCPP_API_LEVEL=430(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 ... tags=[haxe,static]
- src/ThreadTraceHangHL.cpp
- src/Producer.cpp
- src/Tracer.cpp
Link: ThreadTraceHangHL.exe
Creating library ThreadTraceHangHL.lib and object ThreadTraceHangHL.exp
Error: Could not find build target "Files\\HaxeToolkit433\\haxe\\extraLibs/"
Error: Build failed
```

This would appear to be because of the space in the `Program Files` path segment. I cannot seem to run the command line above manually adding the quotes for other reasons. Powershell tells me this when I try:

```
optim-std: The term 'optim-std' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```

Haxe is 4.3.3
hxcpp is 4.3.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.