When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
30 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
#import doesn't do what you want
;compile ```cpp
#import<iostream>
int main(){
std::cout<<"a\n";
}
a
<source>:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
i though the problem came from the .tlb file
tbh i watched this tut https://www.youtube.com/watch?v=M4F6Z4-NAos and used chat gpt
How to use c# dll in c++
💀
yeah fr
what do u suggest me to fix these errors?
@crimson fossil https://stackoverflow.com/questions/15381440/how-to-use-tlb-files-in-a-native-c-project
what compiler are you using?
yeah those things you mentioned use visual studio
so they cant be used in g++?
this is a microsoft-specific language you are using
it's not "standard" c++
it's their version of c++ that will work with c# libraries
g++ only cares about standard c++ and their own version which is more linux focused
and like for example, is there a way to call C# dll function using LoadLibrary and winapi in general?
no idea personally
ok