Share via


TARGETLIBS (Compact 2013)

3/26/2014

This macro definition specifies additional library (.lib) files and object (.obj) files that should be linked into the target executable (.exe or .dll) file.

For example, to link to Coredll.lib, use the following path to Coredll.lib because it is an SDK component.

$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\Coredll.lib

The default value is empty.

This macro definition is typically only used when you are linking to an export library. An export library exports some common functionality to applications or components which can use that functionality. A static library is a file that contains objects and their functions and data. It is linked to the target executable file when the executable file is built. To link to a static library instead, use the SOURCELIBS macro.

Remarks

Compact 2013 has added an additional build pass, which generates export libraries for DLLs after all other static libraries are generated. Therefore, if a static library has a dependency to an export library, the build will generate an error and stop.

If you need the last library generated to be a static library, do not link the export library if you are not calling the function of the DLL.

The build pass generates the export.dll library last.

See Also

Concepts

Sources File
SOURCELIBS