I added the library class UefiApplicationEntryPoint in INF file and
<Library/UefiApplicationEntryPoint.h>
in C file . Yet, the error still persists

Regards,
Nishit Patira
On Fri, Oct 18, 2013 at 12:39 PM, Li, Elvin <elvin...@intel.com> wrote:

>  Do you do this in your code? ****
>
> **1.       **UefiApplicationEntryPoint in [LibraryClasses] in the INF
> file?****
>
> **2.       **include <Library/UefiApplicationEntryPoint.h> in the C file?*
> ***
>
> ** **
>
> Thanks****
>
> Elvin****
>
> *From:* Nishit Patira [mailto:nishitpat...@gmail.com]
> *Sent:* Friday, October 18, 2013 2:48 PM
> *To:* edk2-devel@lists.sourceforge.net
> *Subject:* Re: [edk2] error LNK2001: unresolved external symbol
> _ModuleEntryPoint****
>
> ** **
>
> Sorry,****
>
> the code snippet i meant to mention (which gives error) was
>
> #ifdef EFI_BOOTSHELL
> EFI_APPLICATION_ENTRY_POINT(EfiFlashMain)
> #endif
>
> FI_STATUS
> EFIAPI
> EfiFlashMain (
>   IN EFI_HANDLE         ImageHandle,
>   IN EFI_SYSTEM_TABLE   *SystemTable
>   )
>
>
> This is the snippet which works fine,
> #ifdef EFI_BOOTSHELL
> EFI_APPLICATION_ENTRY_POINT(_ModuleEntryPoint)
> #endif
>
> EFI_STATUS
> EFIAPI
> _ModuleEntryPoint(
>   IN EFI_HANDLE         ImageHandle,
>   IN EFI_SYSTEM_TABLE   *SystemTable
>   )****
>
> Sorry for the gaffe.
>
> ****
>
> Thanks & Regards,
> Nishit Patira****
>
> ** **
>
> ** **
>
> On Fri, Oct 18, 2013 at 12:02 PM, Nishit Patira <nishitpat...@gmail.com>
> wrote:****
>
> Hi,****
>
> I am writing an application in EDK II and for the given snippet of code, i
> get the error
> error LNK2001: unresolved external symbol _ModuleEntryPoint :-
>
> #ifdef EFI_BOOTSHELL
> EFI_APPLICATION_ENTRY_POINT(EfiFlashMain)
> #endif
>
> ****
>
> However, _ModuleEntryPoint is not used anywhere in the program.
> Also, if I change the code to
>
> #ifdef EFI_BOOTSHELL
> EFI_APPLICATION_ENTRY_POINT(*_ModuleEntryPoint*)
> #endif****
>
> the application compiles.
>
> Could you please tell why this is happening.
>
> ****
>
> Regards,****
>
> Nishit Patira****
>
> ** **
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to