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

Add simple C++ test #3046

Merged
merged 9 commits into from
May 20, 2024
Merged

Add simple C++ test #3046

merged 9 commits into from
May 20, 2024

Conversation

kennykerr
Copy link
Collaborator

I'd like to add some C++ interop validation without overly complicating the build. Here's a simple example to try out a technique. May need to limit this to MSVC targets on Windows. We'll see what the CI build has to say.

@kennykerr
Copy link
Collaborator Author

This depends on rust-lang/cargo#7825 not becoming an error.

@kennykerr
Copy link
Collaborator Author

Any GNU experts know why this is failing?

The log includes...

"-L" "D:\\a\\windows-rs\\windows-rs\\crates\\targets\\i686_gnu\\lib"
"-lwindows.0.52.0"

... so the lib should be present and yet its failing to find the import:

undefined reference to `_imp__CoTaskMemFree@4'

Works fine with MSVC.

@kennykerr
Copy link
Collaborator Author

Oh well, at least it works with MSVC. 🤷

@kennykerr kennykerr merged commit 8a2db86 into master May 20, 2024
89 checks passed
@kennykerr kennykerr deleted the test-cpp branch May 20, 2024 19:08
mati865 pushed a commit to mati865/windows-rs that referenced this pull request Jun 15, 2024
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 this pull request may close these issues.

1 participant