Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ linker multiple definition problem in 0.25 #1066

Closed
llzz97 opened this issue Oct 9, 2023 · 1 comment · Fixed by #1069
Closed

C++ linker multiple definition problem in 0.25 #1066

llzz97 opened this issue Oct 9, 2023 · 1 comment · Fixed by #1069

Comments

@llzz97
Copy link

llzz97 commented Oct 9, 2023

Hello everyone,
I am having issues with the linker in C++ when trying to include the following functions from iiopp.h:
iiopp::create_scan_context and iiopp::create_scan_block.
Is there a missing inline keyword?

@llzz97 llzz97 changed the title C++ linker multiple definition problem C++ linker multiple definition problem in 0.25 Oct 9, 2023
@pcercuei
Copy link
Contributor

Looks like so, yes.

pcercuei added a commit that referenced this issue Oct 10, 2023
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
@llzz97 llzz97 closed this as completed Oct 10, 2023
pcercuei added a commit that referenced this issue Oct 10, 2023
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
pcercuei added a commit that referenced this issue Nov 13, 2023
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
pcercuei added a commit that referenced this issue Nov 13, 2023
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
SRaus pushed a commit that referenced this issue Feb 27, 2024
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
(cherry picked from commit 95444ee)
SRaus pushed a commit that referenced this issue Feb 28, 2024
The "inline" keywords must be present in function prototypes, otherwise
these functions may end up defined multiple times in different source
files, causing linking issues.

Fixes #1066.

Signed-off-by: Paul Cercueil <[email protected]>
(cherry picked from commit 95444ee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants