There's an example in s7.html#definestar1, C-side define*.
s7test.scm also writes and tests one.
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
Thanks for your input everyone. I got it working in a bare bones project.
I am still having the original problem in my actual program which is using
s7 as an extension language in the Cocos2d-x game engine, but now I am sure
the problem lies with Cocos2d-x. It was ported from objective C to C++,
Thanks for the kind words about s7! Are you running Linux?
If so, this works for me:
/home/bil/pure-snd/ g++ -c s7.c -I. -g
/home/bil/pure-snd/ g++ exx.c -o exx s7.o -I. -lm -ldl
/home/bil/pure-snd/ exx
(plus 2 3)
7
(plus :blue 2)
66
(exit)
where exx.c has the example code from s7.html.
The example in s7.html#definestar1 is actually where I learned of
s7_define_function_star. I made a small project in C and it works as it
should. However, I cannot seem to find the correct invocation in C++ to
make it work. I was wondering if it needs something like extern C, which
I tried to
On Thu, Feb 12, 2015 at 4:42 PM, Jason Ripley ripley.ja...@gmail.com
wrote:
The example in s7.html#definestar1 is actually where I learned of
s7_define_function_star. I made a small project in C and it works as it
should. However, I cannot seem to find the correct invocation in C++ to
make
On Thu, Feb 12, 2015 at 10:42:31AM -0500, Jason Ripley wrote:
The example in s7.html#definestar1 is actually where I learned of
s7_define_function_star. I made a small project in C and it works as it
should. However, I cannot seem to find the correct invocation in C++ to
make it work. I was
On Thu, Feb 12, 2015 at 10:42:31AM -0500, Jason Ripley wrote:
should. However, I cannot seem to find the correct invocation in C++ to
make it work. I was wondering if it needs something like extern C, which
I tried to no avail.
Yes, when compiling with a C++ compiler you need to declare
Hello,
I am trying to use s7_define_function_star in C++ to create a c-side
define. I am not having any luck though. I am getting nonsense values
back.
Is there a sample project that does this? I grepped through CM and didn't
find any references to s7_define_function_star in the *.cpp files.