Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330044

Summary: eclipse CDT crashes when using gnuplot pipe
Product: [Tools] CDT Reporter: Johannes Kern <johannes.kern>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED INVALID QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Johannes Kern CLA 2010-11-11 16:23:38 EST
I'm using the minGW compiler with cdt on Windows 7 x64 OS. When I try to open the gnuplot pipe, I get an APPCRASH error of the exe file. Everything works fine when I run the same code in Code::Blocks. Can anyone help me with that problem?

My main mehtod looks like the following.

     #include <stdio.h>
     #include <stdlib.h>
     #define GNUPLOT "pgnuplot -persist"

     int main(int argc, char **argv)
     {
        // Open a pipe to gnuplot
        FILE *gnuplotPipe = popen(GNUPLOT,"w");

        return 0;
       }
Comment 1 Andrew Gvozdev CLA 2010-11-11 16:40:13 EST
Does eclipse crash or your program?
Comment 2 Johannes Kern CLA 2010-11-11 16:49:33 EST
(In reply to comment #1)
> Does eclipse crash or your program?


It's my program that crashes.
Comment 3 Andrew Gvozdev CLA 2010-11-11 16:57:39 EST
This bugzilla is for reporting bugs in CDT itself not for finding bugs in user code or troubleshooting user issues. You need to find appropriate forum. I would look for some forum related to unix programming with gcc.