jacob-carlborg / dstep

A tool for converting C and Objective-C headers to D modules
205 stars 37 forks source link

Issues when compiling for Windows #205

Closed ZILtoid1991 closed 5 years ago

ZILtoid1991 commented 6 years ago

It compiles and links, but I get this error message when I try to execute the application:

dstep.exe - Entry Point Not Found

The procedure entry point clang_Type_getNamedType could not be located in the dynamic link library \dstep.exe

Is there any way to fix this or to distribute a binary instead of relying on the end-user for compiling?

jacob-carlborg commented 6 years ago

The procedure entry point clang_Type_getNamedType could not be located in the dynamic link library \dstep.exe

Which version of libclang are you using? Latest supported version is 4.0.0 (I haven't had time to verify any later versions).

Is there any way to fix this or to distribute a binary instead of relying on the end-user for compiling?

Yes. I'm working on that. Should be ready soon.

ZILtoid1991 commented 6 years ago

I have the latest one, maybe I'll try an older one too

ZILtoid1991 commented 6 years ago

Still nothing with 4.0.0...

ciechowoj commented 6 years ago

Can you copy the clang .dll to the directory with dstep? Maybe it's using the wrong .dll (from you system directory or something...).

ZILtoid1991 commented 6 years ago

Thanks, it now works with libclang.dll in the same directory.

You might want to add this information to your readme.md if someone else might encounter with the same problem.

ciechowoj commented 6 years ago

It's kind of mentioned there "Remember to install LLVM to its default installation path and to add its binaries to the PATH environmental variable (otherwise you may need to change dub.json).", but I'm thinking about something more explicit.

ZILtoid1991 commented 6 years ago

Also it only mentions LLVM, not the versions it was tested with.