octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57872] Priority of mex functions with the sam


From: Rik
Subject: [Octave-bug-tracker] [bug #57872] Priority of mex functions with the same name
Date: Sun, 23 Feb 2020 12:26:05 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #57872 (project octave):

The usual solution to keep all stuff together (m-file, cpp file, etc.) is to
create a namespace for the functions.  The namespace is created by using '+'
as the first character of the directory name, and then you can access those
functions with "dir_name.function_name"

But, I still don't see any difference between Octave and Matlab.  I used the
archive I already uploaded (tst_precedence.zip) for testing.


# In shell
unzip tst_precedence.zip
mv tst_prec @testme
octave

# In Octave
cd @testme
mex -v testme.cpp
cd ..
testme


Result is 


Executing mex file testme.cpp.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57872>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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