how to config and add path hl.h?
Closed this issue · 11 comments
how to config and add path hl.h?
"hl.h" no such file or directory.
build-common.hxml
-D ammer.hl.hlInclude="D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include"
-D ammer.hl.hlLibrary="D:\Downloads\hl-1.10.0-win\hl-1.10.0-win"
--hl bin/hl/sample.hl
how to config?it's seem config like here is wrong
Please confirm that D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include
contains hl.h
and D:\Downloads\hl-1.10.0-win\hl-1.10.0-win
contains libhl.lib
.
Could you try without the quotes? Like so:
build-common.hxml
-D ammer.hl.hlInclude=D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include
-D ammer.hl.hlLibrary=D:\Downloads\hl-1.10.0-win\hl-1.10.0-win
--hl bin/hl/sample.hl
If that still doesn't work, please provide the generated bin/hl/Makefile.hl.ammer
file.
Ok, this is not a problem with ammer configuration, but with your terminal. On Windows, after installing MSVC, there should be a "Visual Studio Developer Command Prompt" available in the start menu. Alternatively, you can run the vcvars32
script in a regular command line, which should setup the correct environment variables for stddef.h
and others to work.
@Aurel300 -- your documentation includes these steps, but perhaps include a short blurb saying, "If you encounter the following error, you don't have the right environment. Make sure you're running in the visual studio command prompt, or run vcvars32". It's just human nature to miss little details like this (I did it myself like 3 times even with the documentation right there!)
@larsiusprime Yes, I opened #12 so I don't forget about the FAQ :)
@sonygod Bump: did my last suggestion solve the problem? Can we close this issue?
I can compile ,but still can not run .
it's throw error say: can not load ammer_adder.hdll
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" " x86_amd64
@sonygod That's a step forward :) See this section of the poc readme (recently added). Make sure both ammer_adder.hdll
and adder.dll
are in the current working directory.