DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Handling missing export functions in MSVC linkage
@ 2020-06-07 12:26 Tal Shnaiderman
  2020-06-08  0:09 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 6+ messages in thread
From: Tal Shnaiderman @ 2020-06-07 12:26 UTC (permalink / raw)
  To: Thomas Monjalon, Dmitry Kozlyuk, ranjit.menon, pallavi.kadam,
	Harini Ramakrishnan, navasile, bruce.richardson, William Tu,
	Dmitry Malloy (MESHCHANINOV),
	Fady Bader, Tasnim Bashar
  Cc: dev

Hi,

I was wondering if there is a known solution for the following problem:

Whenever building a DPDK library using clang/MSVC there is an linkage issue if the rte_*_version.map names a function that isn't being compiled.

For example, in librte_metrics several files in the lib build depend on the existence of jansson, however, since the functions in those files are stated in rte_metrics_version.map MSVC prints out
errors in the linkage stage in case jansson is missing:

*error LNK2001: unresolved external symbol rte_metrics_tel_.... 

In clang build the .map file is converted into Module-Definition (.Def) File.

https://docs.microsoft.com/en-us/cpp/build/reference/module-definition-dot-def-files?view=vs-2019

Is there a way to instruct the linker to ignore missing functions in the def file?

Thanks,

Tal.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-29  8:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-07 12:26 [dpdk-dev] Handling missing export functions in MSVC linkage Tal Shnaiderman
2020-06-08  0:09 ` Dmitry Kozlyuk
2020-06-08  8:33   ` David Marchand
2021-03-26  8:39     ` Thomas Monjalon
2021-03-26 14:14       ` [dpdk-dev] [EXTERNAL] " Tyler Retzlaff
2020-06-08 15:06   ` [dpdk-dev] " Tal Shnaiderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).