#.tlb import failed

30 messages · Page 1 of 1 (latest)

trim creekBOT
#

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.

empty spade
#

that's some fantastic compiler gore

#

i guess this is c++/cli?

crimson fossil
#

#import doesn't do what you want

late juniper
#

im here to learn nah?

crimson fossil
#

;compile ```cpp
#import<iostream>
int main(){
std::cout<<"a\n";
}

runic basinBOT
#
Program Output
a
Compiler Output
<source>:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
late juniper
#

i though the problem came from the .tlb file

crimson fossil
#

💀

late juniper
#

yeah fr

#

what do u suggest me to fix these errors?

crimson fossil
late juniper
#

g++

#

from mysys

empty spade
#

this will probably only work with msvc

#

aka: use visual studio

late juniper
#

yeah cl compiler

#

i have installed it too

crimson fossil
#

yeah those things you mentioned use visual studio

late juniper
#

so they cant be used in g++?

empty spade
#

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

late juniper
#

and like for example, is there a way to call C# dll function using LoadLibrary and winapi in general?

empty spade
#

no idea personally

late juniper
#

ok