I have EDK II application and library in package and it works fine when I compile it with library source codes. Now I want to remove the library source codes and link that library with application through .lib file.
I remove library source codes references from my application project and now I'm getting this message while I'm building this application:
DemoApp.lib(DemoApp.obj) : error LNK2001: unresolved external symbol TestFunction
fatal error LNK1120: 1 unresolved externals.
To solve this, in DSC documentation they mention that I need to add library instance into make file as shown in below:
LIBS = $(LIBS) $(LIB_DIR)/$(LibInstanceName)
Problem is how can I add this entry into make file / EDK II build system?
I'm using VS2008 as my tool chain.
Finally I made it by adding
[BuildOptions]
entry into Application INF.In that section I add parameters to Microsoft Linker to get the .lib file from library path: