Code Monkey home page Code Monkey logo

Comments (7)

kuleshov-aleksei avatar kuleshov-aleksei commented on August 12, 2024 5

I've tried to compile re dll, seem like you need to add Ws2_32.lib and Iphlpapi.lib to additional dependencies for linker. Also you need to include file http/chunk.c to compilation, I don't understand why project complies without it btw:)

I think you need do the same thing for rem.

I checked baresip repo but I can not find any solution or reference for libre and librem.

Probably, it's much easier to use baresip solution project alfredh/baresip/win32/baresip.sln and compile only re/rem.

About Gm option: sometime it will be deprecated in future realease of VS, but now it is OK. Maybe project need to be upgraded, but then users with VS15 or VS17 won't be able to compile project.

from re.

kuleshov-aleksei avatar kuleshov-aleksei commented on August 12, 2024 3

@Varooneh sorry, I didn't see your message
The best way is to create a wrapper with functional that you need and declare functions with _cdecl and __declspec(dllexport)

from re.

kuleshov-aleksei avatar kuleshov-aleksei commented on August 12, 2024

Hello,
Yes you can
You can use visual studio project re/mk/win32 with combination of rem project rem/mk/win32
Look at example of compiling stack of re/rem/baresip at baresip/mk/win32

Modify this project files for your need or create your own from scratch. Then compile it as dynamic library (dll) and use in your Delphi or C# projects

from re.

Varooneh avatar Varooneh commented on August 12, 2024

Hi @Encamy
Thank you for help me, I used visual studio 2015 and visual studio 2019. When I open libre in vs 2015 or 2019 I can only build .lib, when I changed to dll I got multiple errors and can not create dll, but .lib have not any problem. I can not use .lib id delphi or c#.

Can you help me how to combine libre and librem and build as dll?

I checked baresip repo but I can not find any solution or reference for libre and librem.

Please help me.

(sorry for bad english)

from re.

Varooneh avatar Varooneh commented on August 12, 2024

@Encamy
Also I read this link and i get many warnings and errors :

image

image

from re.

Varooneh avatar Varooneh commented on August 12, 2024

@Encamy
After several attempts, with your help, I could create dll for libre and very very thank you for help me. Now, I've another problem, when I want get dll exported functions list for example with this tools DLL export viewer , re-win32.dll have not any exported function, also I can't use dll in C# because is not COM or delphi because have not exported functions.

Can help me for this?

from re.

Varooneh avatar Varooneh commented on August 12, 2024

@Encamy Thank you for help.

from re.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.