-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Follow the cxx build for output file names #855
Comments
New idea: If that doesn't work, we could also try hashing the tokenstream to get a unique filename that we could reference when expanding the macro. |
now that cxx_file_stem is gone, how do you use prevent the linking error because of same module name ? |
What is the linker error you get ? As now we are following the path similar to CXX, i also wonder what happens if you do the same with CXX ? |
It's a linker error. it cannot find the objects for linking the library. I have cxx-qt based Library which builds fine but when I consume it another project, it fails with linker error. |
Don't know how much this is possibly related to #1065 which we hope to sort out in the next cycle. Do you have an example project and the errors or an easy way to reproduce ? |
I do. I will send it along with proper logs after I am done with work. |
I did a clean update+build and it seems to start working automatically. so for now it seems to be resolved. Thanks for help! |
At the moment we use the file stem or the module ident or the cxx_file_stem depending on the situation in cxx-qt-build.
With CXX if the bridge is in
src/folder/binding.rs
they generatesrc/folder/binding.rs.h
.In this situation should we do the following
#[cxx::bridge]
src/folder/binding.rs.h
binding.cxx.h
#[cxx_qt::bridge]
src/folder/binding.rs.qt.h
binding.cxxqt.h
#[cxx_qt::bridge(cxx_file_stem = "binding"]
binding.rs.qt.h
binding.cxxqt.h
Note that due missing support in macros we cannot find the path in the second case (as seen in #200 ) so ...
cxx_qt::bridge
without acxx_file_stem
until spansource_file()
API is stableThe text was updated successfully, but these errors were encountered: