If your model needs to link external C files together with the code generated from the .M file, set an environment variable MUSEROBJS before you run MMake. For example, supposing you have files myf1.c and myf2.c which you want to link with mymodel.m, do this:
C:\>set MUSEROBJS=myf1.obj myf2.obj
# note: use the .obj extensions (not .c)
C:\>mmake mymodel.mdl
# note: mmake will compile myf1.c and myf2.c to objs
C:\>set MUSEROBJS=
# note: this unsets the environment variable
Note that mmake will take care of compiling your c-files to obj-files and link them in. In fact, it is recommended to have mmake compile your c-files, and not do it yourself.
Comments
0 comments
Please sign in to leave a comment.