-
Hello! I'm fairly new to the language and I saw there is a way to compile lobster to cpp, which I did and saw the cpp that was generated, tried to create a lib from it but seems i did not succeed. Is there a way or is it in the plans to make something like this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's hard to help you when you say "i did not succeed" instead of detailed errors and a description of what you did. Please make sure you follow the instructions here https://aardappel.github.io/lobster/implementation.html on how to build the This typically generates an executable. There may be a way to generate it into a dll, but even so it would not generate C/C++ compatible function symbols for all Lobster functions, if that's what you were expecting. Lobster is not linked-compatible with C/C++ functions, it is a higher level language that needs explicit bindings, see the same file above. |
Beta Was this translation helpful? Give feedback.
It's hard to help you when you say "i did not succeed" instead of detailed errors and a description of what you did.
Please make sure you follow the instructions here https://aardappel.github.io/lobster/implementation.html on how to build the
--cpp
output.This typically generates an executable. There may be a way to generate it into a dll, but even so it would not generate C/C++ compatible function symbols for all Lobster functions, if that's what you were expecting. Lobster is not linked-compatible with C/C++ functions, it is a higher level language that needs explicit bindings, see the same file above.