Skip to content

Fixing usage across libraries / translation units#189

Closed
philbucher wants to merge 35 commits into
masterfrom
testing-different-executables
Closed

Fixing usage across libraries / translation units#189
philbucher wants to merge 35 commits into
masterfrom
testing-different-executables

Conversation

@philbucher

@philbucher philbucher commented Jun 2, 2021

Copy link
Copy Markdown
Member

I added a few tests that cover different scenarios
The solution I propose seems to work for all of them :)

Now I think we could leave it as header only and still have it working properly!

EDIT: Note that this solution also works without any extern!

closes #184

for reference: https://stackoverflow.com/questions/23690416/c-template-singleton-static-pointer-initialization-in-header-file

@philbucher

Copy link
Copy Markdown
Member Author

Aaaaaaand it is not working in Win 🤦‍♂️

@philbucher

Copy link
Copy Markdown
Member Author

ok back to square one, it is not working at all 🙈

Maybe this is the end of header only :/

@philbucher philbucher force-pushed the testing-different-executables branch from 0f2c148 to 48cf7eb Compare June 2, 2021 14:19
@philbucher philbucher mentioned this pull request Aug 25, 2021
39 tasks
@philbucher

Copy link
Copy Markdown
Member Author

closing as should be fixed since CoSimIO is no longer header only

@philbucher philbucher closed this Feb 14, 2022
@philbucher philbucher deleted the testing-different-executables branch February 14, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using CoSimIO in different TU / from other (linked) libraries

1 participant