-

   rss_forum_sources_ru

 - e-mail

 

 -

 LiveInternet.ru:
: 29.07.2007
:
:
: 80

:


++ Linux

, 18 2020 . 20:56 +
Sunless: . . .

    extern "C" {
    #define EXPORT __attribute__((visibility("default")))
    EXPORT int foocpp(void)
    {
    int foo();
    return foo();
    }
    }


g++ -shared -fpic -o lib.so my.cpp my.c asm.s

dotnet run symbol lookup error: .../bin/Debug/netcoreapp3.1/lib.so: undefined symbol: foo

https://forum.sources.ru/index.php?showtopic=419682&view=findpost&p=3839040

:  

: [1] []
 

:
: 

: ( )

:

  URL