shsajjadi / OctaveCoder

Octave Coder __ A code generator and build system that converts Octave to C++
Other
27 stars 3 forks source link

another one #46

Open reza1234567891 opened 3 months ago

reza1234567891 commented 3 months ago

i tried another mode, the function i try to compile is:

function [a]=testtest(b)
a=b;

i use this command:

octave2oct('testtest', 'mode', 'static', 'cache', 'cache1', 'verbose', true)

i get these errors:


analysing dependencies ...

building testtest.oct ...
  compiling coder runtime
  compiling testtest_2.o
cache1/src/testtest_2.cpp:2:10: warning: missing terminating " character
 #include "testtest_  static Constant& Const(int);
          ^
cache1/src/testtest_2.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include "testtest_  static Constant& Const(int);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cache1/src/testtest_2.cpp:3:9: error: ‘Symbol’ does not name a type
   const Symbol& testtest_make()
         ^~~~~~
cache1/src/testtest_2.cpp:16:10: error: ‘Constant’ does not name a type; did you mean ‘obstack’?
   static Constant& Const(int i)
          ^~~~~~~~
          obstack
cache1/src/testtest_2.cpp:23:1: error: expected declaration before ‘}’ token
 }
 ^
warning: mkoctfile: building exited with failure status
error: coder: compile error
error: called from
    coder_test at line 3 column 1

coder version 1.9.2 octave version 7.1.0 xubuntu 16

thanks :-)