I'm running the following in Eclipse using the Cygwin as the toolchain and the error code is executing. I get "cannot get params about stdin: Inappropriate ioctl for device". It's fine in Linux. I've been able to run other code that doesn't use this header. Also, how can I set up Eclipse to debug code that is in Cygwin itself or in a remote Linux server?

#include    <termios.h>

struct termios ttyinfo; /* this struct holds tty info */
if (tcgetattr(0, &ttyinfo) == -1) { /* get info */ 
        perror("cannot get params about stdin");
        exit(1);       }

Recommended Answers

Isn't Cygwin a Windows compiler and termios.h a Linux/Unix header?

Jump to Post

All 2 Replies

Isn't Cygwin a Windows compiler and termios.h a Linux/Unix header?

Yes it is but Cygwin includes that header. Maybe it's only accessible from inside the Cywgwin terminal window. I was using Eclipse on Windows. Do you know if there's a way to use Eclipse this way, maybe through remote debugging?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.