Beef icon indicating copy to clipboard operation
Beef copied to clipboard

How to use static link libraries?

Open 2505817596 opened this issue 2 years ago • 3 comments

Hello, I have a static link library generated by vs, He runs well in the vs c++console program How to run normally in beef?

-4134fa0bbc270155 59f857a766b4d331 thank!

2505817596 avatar Dec 31 '22 14:12 2505817596

-6250663e51dbb75a

2505817596 avatar Jan 02 '23 00:01 2505817596

3c1e8a31cf22084c

2505817596 avatar Jan 02 '23 00:01 2505817596

Hi, I did mine like this (it's C linkage though): image image

jarroddavis68 avatar Jan 11 '24 03:01 jarroddavis68

If I understood you correctly, then you wanted to write a static C/C++ library and then use it in Beef. Here you go: https://github.com/kallisto56/CppLibForBeef That repository has a particular configuration, that allows for Beef IDE to build C++ project. Just open Beef workspace and press Build. Also supports stepping into C++ land with Beef debugger! Note: repository as whole might require latest nightly build, that can be downloaded from official webstite. If you have any questions, hop on official Discord server: https://discord.gg/rnsc9YP Have fun!

This issue may be closed. Oh, lucky issue number, 1-777.

kallisto56 avatar Jan 30 '25 03:01 kallisto56