ionescu007/VisualUefi

Adding StdLib

Arroquw opened this issue · 1 comments

Hi, I've got an example driver from a company, and they are using std functions such as 'sprintf', 'printf' and '_wcsnicmp'. Trying to build this it gives 'unresolved external symbol' errors, which is ofcourse expected. The driver builds with just using the EDK2 build system (using UDK2015).

I tried adding the include directories of StdLib in EDK2, but it needs a lib as well. So, is there a way to add StdLib to the EDK-II libraries, or get it to build some other way?

I've tried adding a new project to EDK-II and adding the stdio and stdlib sources there, and then building the libraries, but this doesn't work. The StdLib will build into a library, but the stdio will complain about not finding things like memcpy, which is probably due to the compiler optimising some things and using the non-UEFI functions for that.

Fixed this by using the Cryptolib stdio and stdlib