[Top][All Lists]

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

Segmentation fault running .oct file

From: Vision
Subject: Segmentation fault running .oct file
Date: Mon, 14 Mar 2016 05:19:21 -0700 (PDT)


I'm using following C++ code in my .oct file, I receive the correct value
via cout, but I get segmentation error after. my C++ code has no input or
output args (just for testing).

#include "snap7.h"
#include <iostream>
#include <octave/oct.h>

DEFUN_DLD(testread, , ,
          "test reading PLC")

 -- code to read data
 cout << "value is " << value << '\n';
//end code

What do I need to correct?
Thank you!

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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