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

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

[Octave-bug-tracker] [bug #56078] ov.h:175: undefined reference to `octa


From: anonymous
Subject: [Octave-bug-tracker] [bug #56078] ov.h:175: undefined reference to `octave_value::nil_rep()', in both Windows & Ubuntu OS
Date: Fri, 5 Apr 2019 08:43:53 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:66.0) Gecko/20100101 Firefox/66.0

URL:
  <https://savannah.gnu.org/bugs/?56078>

                 Summary: ov.h:175: undefined reference to
`octave_value::nil_rep()', in both Windows & Ubuntu OS
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 05 Apr 2019 12:43:51 PM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Emil Oanta
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Any

    _______________________________________________________

Details:

Dear All, 

I want to use C++ as a front end for Octave and a header file is


//-------------------------------------------------------------
/*
 *
 *  Name:                 OCTAVE_cpp_double_2_octave_double.h
 *  Created on:           May 27, 2017
 *  Author:               Emil
 *  Updated on:           October 13, 2017
 *  Project restarted on: April 05, 2019
 *
 *  Upper level goal: to use the Octave facilities in C++ code
 *
 */

#ifndef OCTAVE_CPP_DOUBLE_2_OCTAVE_DOUBLE_H_
#define OCTAVE_CPP_DOUBLE_2_OCTAVE_DOUBLE_H_

#ifdef __linux__
   // Linux code
   #include "/usr/include/c++/7/iostream" 
   #include "/usr/include/octave-4.2.2/octave/oct.h" // Octave header
#elif _WIN32
   // Windows code
   #include <iostream>     // std::cout, std::end
   #include
"C:\Octave\Octave-5.1.0.0\mingw32\include\octave-5.1.0\octave\oct.h"
   // The next one is not necessary??
   #include
"C:\Octave\Octave-5.1.0.0\mingw32\include\octave-5.1.0\octave\builtin-defun-decls.h"
#else
   // Unknown operating system
#endif

octave_value OCTAVE_cpp_double_2_octave_double (double number);

#endif /* OCTAVE_CPP_DOUBLE_2_OCTAVE_DOUBLE_H_ */
//-------------------------------------------------------------
/*
 *
 *  Name:                 OCTAVE_cpp_double_2_octave_double.cpp
 *  Created on:           May 27, 2017
 *  Author:               Emil
 *  Updated on:           October 13, 2017
 *  Project restarted on: April 05, 2019
 *
 *  Upper level goal: to use the Octave facilities in C++ code
 *
 */
#ifdef __linux__
   // Linux code
   #include "./OCTAVE_cpp_double_2_octave_double.h"
#elif _WIN32
   // Windows code
   #include "OCTAVE_cpp_double_2_octave_double.h"
#else
   // Unknown operating system
#endif


octave_value OCTAVE_cpp_double_2_octave_double (double number) {
   octave_value return_ov;
   return_ov=static_cast<octave_value>(number);
   //return_ov=octave_value(number);
   return(return_ov);
}
//-------------------------------------------------------------


The error is the same in Windows and Ubuntu:

OCTAVE_cpp_double_2_octave_double.o: In function
`Z33OCTAVE_cpp_double_2_octave_doubled':
C:\E\Workspace-Eclipse\_Headers\Debug/../OCTAVE_cpp_double_2_octave_double.cpp:44:
undefined reference to `octave_value::octave_value(double)'
OCTAVE_cpp_double_2_octave_double.o: In function `ZN12octave_valueC1Ev':
*BOLD*
C:/Octave/Octave-5.1.0.0/mingw32/include/octave-5.1.0/octave/ov.h:175:
undefined reference to `octave_value::nil_rep()'
*BOLD*



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 05 Apr 2019 12:43:51 PM UTC  Name: Screenshot from 2019-04-05
17-32-57.png  Size: 397KiB   By: None
Screen shots in Ubuntu and in Windows OS
<http://savannah.gnu.org/bugs/download.php?file_id=46723>
-------------------------------------------------------
Date: Fri 05 Apr 2019 12:43:51 PM UTC  Name: 01 eclipse.png  Size: 182KiB  
By: None
Screen shots in Ubuntu and in Windows OS
<http://savannah.gnu.org/bugs/download.php?file_id=46724>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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