ionescu007/VisualUefi

Question on how to use functions out of netlib.h

Closed this issue · 1 comments

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

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.