[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) |
Hey,
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).
//code
#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:
http://octave.1599824.n4.nabble.com/Segmentation-fault-running-oct-file-tp4675483.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Segmentation fault running .oct file,
Vision <=