ionescu007 / VisualUefi

A project for allowing EDK-II Development with Visual Studio
496 stars 125 forks source link

Question on how to use functions out of netlib.h #37

Closed nschuetz1311 closed 4 years ago

nschuetz1311 commented 4 years ago

Hi,

I'm trying to use some functions out of the "edk2\MdeModulePkg\Include\Library\NetLib.h" like "NetLibGetMacAddress", however, when I try to use any function defined in this header file I'm not able to compile my project anymore. The defines and structures declared in this header however are perfectly accessible. Is there anything I have to consider doing to access these functions properly? Right now I'm always prompted with this error: "LNK2001 unresolved external symbol NetLibGetmacAddress". I would be more than happy if anyone could help me with this or at least point me in the right direction to fix this

Best Regards Niko

nschuetz1311 commented 4 years ago

Just noticed the there was no NetLib.Lib prepared in the EDKII folder. After adding this library and building it and then adding the output into the "samples.props" next to the other this issue was resolved.