[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MEX compilation problem---error: `xyz' undefined

From: Steve C. Thompson
Subject: Re: MEX compilation problem---error: `xyz' undefined
Date: Fri, 30 Mar 2007 12:00:46 -0700

On Fri, 2007-03-30 at 10:23 +0200, David Bateman wrote:
> Yeah, there is a bug in cml 1.6.3 is
> source/include/interleaver.h and I have no idea how this
> compiled with Matlab either. I suspect probably no one even
> tried as cml 1.6.3 supplies the windows versions of the mex
> files pre built.. I attach a patch that fixes cml 1.6.3 ...
> ...
> octave:1> a = CreateUmtsInterleaver (100)
> r[0] = 17
> r[1] = 13
> r[2] = 11
> r[3] = 7
> r[4] = 1
> ...

Dear David,

That is cool that you got it to work.  I too found the bugs in
source/include/interleaver.h---the misplaced comment delimiter
and the no end of line---after fixing that and running
mkoctfile (with no stated errors) I still get:

  octave-2.9.10:1> CreateUmtsInterleaver (100)
  error: `CreateUmtsInterleaver' undefined near line 1 column 1

I don't think this is necessarily a problem with
CreateUmtsInterleaver.  I've tried to compile other mex files.
They compile, but don't run, getting the same error as above.

Since I'm trying to compile mex files that are quite involved,
I'm going to try to compile a really simple "Hello World" type of
thing.  If I get the same error then something deeper must be

Others:  Perhaps you've been where I'm currently at.  If you have
a simple "Hello World" mex file that you've successfully
compiled, and ran, I'd like to see it, along with the mkoctfile
command used.  If I get this far (baby steps), I'll make sure to
post it.

Man, there must just be something really simple that is wrong.
Note that I've compiled the simple from .  It compiled fine, no errors.
And, as an added bonus, it actually ran at the octave prompt,
which isn't happening thus far with my mex adventures.

To be continued...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]