Modulable programming
-
Hello everyone! I'm making a program that I would like to have a plug-in interface. I thought of using something like Lua, but I would like them to be written in C or C++. I know I can use DLL's, but I want this to be cross-platform. What's the most common method? I really don't want to use an external library, but I will if I'm too lazy to do it myself. :laugh: Thanks in advance!
Windows Calculator told me I will die at 28. :(
-
Hello everyone! I'm making a program that I would like to have a plug-in interface. I thought of using something like Lua, but I would like them to be written in C or C++. I know I can use DLL's, but I want this to be cross-platform. What's the most common method? I really don't want to use an external library, but I will if I'm too lazy to do it myself. :laugh: Thanks in advance!
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
I want this to be cross-platform.
Not asking for the moon or anything then :) . With the current state of technology if you want it to be really cross platform you'll need to ship it as source and that source will need to be dependent on the C++ standard library, (no exotic features) and absolutely nothing else. Otherwise I would recommend going for a statically linked library built with GCC/g++ under MingW or Cygwin on Windows and from the same source using a similar version of GCC/g++ on your Linux flavour of choice. If you can achieve that with genuinely shared source then a. you're a star b. please let me know the detaisl so I can do it to. :)
Nothing is exactly what it seems but everything with seems can be unpicked.