[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault running .oct file
From: |
Andreas Weber |
Subject: |
Re: Segmentation fault running .oct file |
Date: |
Mon, 14 Mar 2016 14:30:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 |
Am 14.03.2016 um 13:19 schrieb Vision:
> 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!
Do you really think this could help anyone to find the bug in your code?
You should really create a little example and how you build and call it.
So you are trying to make an OCT wrapper around
http://snap7.sourceforge.net/?
-- Andy