galla rao
2013-07-10 12:48:50 UTC
Hello All,
I am trying to build a optionrom with UDK2010.SR1.UP1 libraries
with /TP as compiler switch
I see error C2496 from AutoGen.c, though i never use these PCD's
when i don't use /TP flag, this error is not seen
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(65)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumLinkedListLength' :
'selectany' can only be applied to data items with external linkage
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(72)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumAsciiStringLength' :
'selectany' can only be applied to data items with external linkage
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(79)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumUnicodeStringLength' :
'selectany' can only be applied to data items with external linkage
I am using /TP(for convenience of declaring varaibles) and also some extern
"C" code
Please help me know how to overcome this error
Thanks
Ranga
I am trying to build a optionrom with UDK2010.SR1.UP1 libraries
with /TP as compiler switch
I see error C2496 from AutoGen.c, though i never use these PCD's
when i don't use /TP flag, this error is not seen
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(65)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumLinkedListLength' :
'selectany' can only be applied to data items with external linkage
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(72)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumAsciiStringLength' :
'selectany' can only be applied to data items with external linkage
c:\udk2010.up1\Build\MdeModule\RELEASE_VS2010\X64\MdeModulePkg\Bus\Pci\Sasdriver\SasDriver\DEBUG\AutoGen.c(79)
: error C2496: '_gPcd_FixedAtBuild_PcdMaximumUnicodeStringLength' :
'selectany' can only be applied to data items with external linkage
I am using /TP(for convenience of declaring varaibles) and also some extern
"C" code
Please help me know how to overcome this error
Thanks
Ranga