问题描述
我们假设我需要链接位于以下路径的库:
Let's suppose I need to link against a library that is located on the following path:
C:\ WINCE700 \OSDesigns\MYOSDESIGN \ MYOSDESIGN \Wince700 \ myplatformname_ARMV7_Retail\cesysgen\platform\myplatformname \ lib\ARMV7 \retail
C:\WINCE700\OSDesigns\MYOSDESIGN\MYOSDESIGN\Wince700\myplatformname_ARMV7_Retail\cesysgen\platform\myplatformname\lib\ARMV7\retail
如果我写 $(SG_OUTPUT_ROOT)\ $(_ CPUINDPATH)\ mylibrary.lib \我只会得到C:\ WINCE700 \OSDesigns \ MYOSDESIGN \MYOSDESIGN \Wince700 \ myplatformname_ARMV7_Retail \cesysgen\ARMV7 \ verytail。如何插入myplatformname,每种情况下
可以不同?例如
If I write $(SG_OUTPUT_ROOT)\$(_CPUINDPATH)\mylibrary.lib \ I will get only C:\WINCE700\OSDesigns\MYOSDESIGN\MYOSDESIGN\Wince700\myplatformname_ARMV7_Retail\cesysgen\ARMV7\retail. How to insert myplatformname, which can be different in each case? eg
$(SG_OUTPUT_ROOT)\platform\SOMETHING\lib\ $(_ CPUINDPATH)\mylibrary.lib      \
$(SG_OUTPUT_ROOT)\platform\SOMETHING\lib\$(_CPUINDPATH)\mylibrary.lib \
谢谢
推荐答案
具体: 
例如,在从Platform Builder打开的构建窗口中,SG_OUTPUT_ROOT设置为%_OSDESIGNROOT%\Wince700 \\ \\%_TGTPLAT%_%TGTCPU%_%WINCEDEBUG%\\\ nysysgen
For example, in a build window opened from Platform Builder, SG_OUTPUT_ROOT is set to %_OSDESIGNROOT%\Wince700\%_TGTPLAT%_%TGTCPU%_%WINCEDEBUG%\cesysgen
这篇关于如何在SOURCELIBS中提供路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!