DPDK patches and discussions
 help / color / mirror / Atom feed
* The question for the modification against (lib/cryptodev/rte_cryptodev.h) in commit 719834a6
@ 2024-12-19 10:41 Hu, Zhigang
  2024-12-19 11:45 ` [PATCH] cryptodev: fix C++ include Thomas Monjalon
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hu, Zhigang @ 2024-12-19 10:41 UTC (permalink / raw)
  To: dev; +Cc: Dong, Yao, Richardson, Bruce


[-- Attachment #1.1: Type: text/plain, Size: 740 bytes --]

Hi, experts,

My C++ program calls some functions defined in lib/cryptodev/rte_cryptodev.h. After upgrading dpdk from 23.11 to 24.11, my C++ program failed to be complied.  It looks like that the cimmit 719834a6 caused my issue.

It seems that the commit 719834a6 intends to exclude all head files from the
#ifdef __cplusplus
extern "C" {
#endif
......
#ifdef __cplusplus
}
#endif
Unfortunately some function declarations are also excluded wrongly since these declarations are before the last head file. Below picture is an example. The function in the red circle can't be linked by C++ complier. Would you please help to check this issue?

Best regards!
Hu Zhigang
    
[cid:bbf5bf01-e72e-42b0-8b1a-fc627fbb1dc5]

[-- Attachment #1.2: Type: text/html, Size: 4833 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 90739 bytes --]

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

end of thread, other threads:[~2024-12-19 16:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 10:41 The question for the modification against (lib/cryptodev/rte_cryptodev.h) in commit 719834a6 Hu, Zhigang
2024-12-19 11:45 ` [PATCH] cryptodev: fix C++ include Thomas Monjalon
2024-12-19 12:24   ` [EXTERNAL] " Akhil Goyal
2024-12-19 12:36     ` Thomas Monjalon
2024-12-19 11:48 ` The question for the modification against (lib/cryptodev/rte_cryptodev.h) in commit 719834a6 Thomas Monjalon
2024-12-19 13:30 ` [PATCH v2] cryptodev: fix C++ include Thomas Monjalon
2024-12-19 15:37   ` David Marchand
2024-12-19 16:36     ` Mattias Rönnblom
2024-12-19 16:34   ` Mattias Rönnblom

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).