Using shared objects

new topic     » topic index » view thread      » older message » newer message

I have some shared object written in C.  Below is the code.  
What I want is to write a euphoria include that maps the 
shared object to euphoria.  

What I'd like even more is if the share object could be 
distributed as part of the project and not necessarily 
"installed" on the host.  (ie... no ldconfig).

So my question is, does anyone have the time to show me 
how to do it?

This is what I have ...

#include <stdlib.h>
#define NUM_DOG 10

void mush(char**, int);
int bark();

void mush(char* dogs[], int len)
{
	int i = 0;
	printf("Number of dogs: %d \n", len );
	for (i; i < len; i++)
	{
		printf("Dog named: %s starts mushing...\n", dogs[i]);
	}
}

int bark()
{
	return 1;
}

This is what I want ...

include dog.e
if atom(bark()) then
	mush({"scooby", "dino", "astro", "spike"}) --notice the absence of arg 2
end if


new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu