Re: Making your own shared libraries
- Posted by JJProg at CYBERBURY.NET Jul 18, 1999
- 476 views
EU>Here's an example of how you can write your EU>own C routines and add them to your Linux Euphoria EU>program. Making a shared library with gcc EU>isn't well documented, but is actually very simple. EU>1. Create a C source file, say, mylib.c EU>and define one or more C functions : EU>2. Create a Euphoria program, mylib.exu: EU>3. Make a shared library from your C source file: EU>gcc -shared mylib.c -o mylib.so EU>4. Run your Euphoria program: EU>exu mylib EU>Regards, EU> Rob Craig EU> Rapid Deployment Software EU> http://members.aol.com/FilesEu/ Are you going to add this to Euphoria for DOS at some point? I think DJGPP supports the same kind of thing since it's a port of GCC, though I haven't looked into it. Jeffrey Fielding JJProg at cyberbury.net http://members.tripod.com/~JJProg/