Jump to content

How to Create *.so Files with M2 Functions (Player/Quests)


Go to solution Solved by Reboot,

Recommended Posts

  • Solution
gcc -c -fPIC file.c -o file.o

This will generate an object file (.o), now you take it and create the .so file:

gcc file.o -shared -o file.so

If you want to the steps below in one step :

gcc -shared -o files.so -fPIC files.c

I recomand gcc49 for that..

 

 

You can use for example , if you are beginner IMER LIBS : 

 

 

The exetnsion on you code must be  (.c or .cpp )

 

Good luck

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.