Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hxcpp does not quote -I paths with spaces #1097

Open
47rooks opened this issue Mar 19, 2024 · 0 comments
Open

hxcpp does not quote -I paths with spaces #1097

47rooks opened this issue Mar 19, 2024 · 0 comments

Comments

@47rooks
Copy link

47rooks commented Mar 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant