newbie - compiling a C program into a max external

anna's icon

Hi, hope someone can help me.

I have no experience writing Max externals but am using an external for which I need to make a very small change (adding one extra 'if' statement to 28 pages of code!)

I have made the changes to the source code file (it is written in C)

All I want to do now is to convert this C source code into an external that I can use in Max/MSP.

I don't have Codewarrior or XCode running on my machine and as I am using a university computer, it is awkward to install any new programs.

Could anyone offer me any advice?

Thanks very much!

Anna

Mattijs's icon

Moved this post to the Dev forum, please direct your replies to the Dev list

barry threw's icon
anna's icon

Thanks fe,

Just so I am clear (I really am a newbie at this!)

All I need to do to my new C program is to compile it and then I can just use the compiled version of the C program as an external? Is that right?

anna

Mattijs's icon

Quote: anna wrote on Fri, 20 July 2007 13:40
----------------------------------------------------
> Thanks fe,
>
> Just so I am clear (I really am a newbie at this!)
>
> All I need to do to my new C program is to compile it and then I can just use the compiled version of the C program as an external? Is that right?
>
> anna
----------------------------------------------------

You need to include the necessary frameworks, the way that works depends on your development environment. Here is cycling's reference for Xcode:

Mattijs

Jeremy's icon

A Max external is a shared library with a specific structure. If your
program adheres to this structure then, yes, it will probably work.
But if it's just a C program, then no. I understood from your first
email, that you took a pre-existing Max external and made some
modifications. If this is the case, then you probably just need to
recompile it (presumably it came with a project with other necessary
settings). Otherwise, it needs to be structured into a format
understood by Max, as defined by the Max SDK:

or

jb

Am 20.07.2007 um 13:40 schrieb Anna:

>
> Thanks fe,
>
> Just so I am clear (I really am a newbie at this!)
>
> All I need to do to my new C program is to compile it and then I
> can just use the compiled version of the C program as an external?
> Is that right?
>
> anna