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

Fixing usage across libraries / translation units #189

Closed
wants to merge 35 commits into from

Conversation

philbucher
Copy link
Member

@philbucher philbucher commented Jun 2, 2021

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
Member Author

Aaaaaaand it is not working in Win 🤦‍♂️

@philbucher
Copy link
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
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