help-octave
[Top][All Lists]
Advanced

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

print_usage( ) causes errors when compiling .oct files


From: Aquil H. Abdullah
Subject: print_usage( ) causes errors when compiling .oct files
Date: Wed, 11 Oct 2006 17:10:01 -0400

Hello All,
  When building .oct files from C++ source files I have on occasion run into the compile error:

/home/aha/octave/include/octave-2.9.5/octave/defun-int.h: In
   function `octave_value_list Fisgalois(const octave_value_list&, int)':
/home/aha/octave/include/octave-2.9.5/octave/defun-int.h:38: error: too
   few arguments to function `void print_usage(const std::string&, bool, const
   std::string&)'

defun-int.h contains
....
extern void print_usage (const std::string& nm, bool just_usage = false,
                         const std::string& extra_msg = std::string ());
....

while the file that I am trying to compile contains somthing like...
   if (args.length() != 1)
     print_usage ();
   else if (!galois_type_loaded)

if I modify the the C++ source file so that the print_usage call looks like:
print_usage("isgalois");

then the file compiles, with warnings, but no errors.

I guess my question is whether or not there has been a change in the parameter declaration of the function print_usage()? I do know that if you call print_usage() from within a .m file you can leave out any parameters.  Any thoughts?


--
Aquil H. Abdullah
address@hidden
reply via email to

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