ez8-co / emock

🐞 下一代C/C++跨平台mock库 (Next generation cross-platform mock library for C/C++)
Apache License 2.0
118 stars 35 forks source link

Cannot build in windows #39

Closed muhdhisham closed 7 months ago

muhdhisham commented 11 months ago

While generating makefile this error occurs in windows. I guess sys/mman.h is not available for windows. Then how can I run emock in windows. Can anyone please tell the step by step procedure to get emock running? It would be helpful.

emock-master\emock-master\src\SymbolRetriever.cpp:33:18: fatal error: sys/mman.h: No such file or directory 33 | #include <sys/mman.h>

orca-zhang commented 11 months ago

Which compiler or IDE are you using? Is it MinGW or cygwin under windows?

muhdhisham commented 10 months ago

I'm using MinGW. Can you please help?

muhdhisham commented 8 months ago

Is there anything I can do to make this running? Btw I'm using vs code

orca-zhang commented 7 months ago

Just have a try.

muhdhisham commented 7 months ago

Emock/src/SymbolRetriever.cpp:21:22: fatal error: DbgHelp.h: No such file or directory [build] #include

/Emock/src/Trampoline.cpp:24:17: error: '_W64' does not name a type [build] typedef _W64 unsigned int uintptr_t;

Why are these errors showing? Cannot build. Build stops due to these errors

muhdhisham commented 7 months ago

Using mingw from mysys2 fixed the issue