Menu

Cygwin and termios.h

2006-05-31
2012-09-26
  • Nobody/Anonymous

    I've installed DEVC++ 4.9.9.1 and the latest release of Cygwin

    I've to compile a C++ source that requires the Termios.h file.
    That file is present in C:\Cygwin\usr\include but a the compilation time I still get the missing file error:

    These are my settings:

    I added to path = %
    path%;C:\Cygwin\contrib\bin;C:\Cygwin\bin;C:\Cygwin\usr\bin

    and also i created a new compiler item in devc++

    Binaries c:\cygwinin\bin
    Libraries c:\cygwin\lib
    Include C c:\cygwin\usr\include
    Include c++ c:\cygwin\usr\include

    The name of the executables are the same
    Still missing problem! I'm getting realli mad
    Please help me!!!!

     
    • Wayne Keen

      Wayne Keen - 2006-05-31

      Can you post you compile log please?

      Wayne

       
    • Nobody/Anonymous

      Compilatore: Default compiler
      Building Makefile: "C:\progetti\HandheldRFIDReaderv1_0\Toolkit\Makefile.win"
      Esecuzione di make...
      make.exe -f "C:\progetti\HandheldRFIDReaderv1_0\Toolkit\Makefile.win" all
      g++.exe -D__DEBUG__ -c src/HandheldRFIDReader.cpp -o src/HandheldRFIDReader.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -g -g3

      src/HandheldRFIDReader.cpp:47:21: termios.h: No such file or directory
      src/HandheldRFIDReader.cpp:49:21: pthread.h: No such file or directory

      src/HandheldRFIDReader.cpp:50:18: poll.h: No such file or directory
      src/HandheldRFIDReader.cpp:52:21: pthread.h: No such file or directory
      In file included from src/HandheldRFIDReader.cpp:57:
      src/HandheldRFIDReader.hpp:46:21: pthread.h: No such file or directory
      In file included from src/HandheldRFIDReader.cpp:57:
      src/HandheldRFIDReader.hpp:95: error: 'pthread_t' is used as a type, but is not
      defined as a type.

      src/HandheldRFIDReader.cpp: In member function void HandheldRFIDReader::_ctor()': src/HandheldRFIDReader.cpp:194: error:tid' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:194: error: (Each undeclared identifier is reported
      only once for each function it appears in.)
      src/HandheldRFIDReader.cpp: In member function int HandheldRFIDReader::_connect(char*)': src/HandheldRFIDReader.cpp:210: error:O_NOCTTY' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:210: error: O_NDELAY' undeclared (first use this function) src/HandheldRFIDReader.cpp:216: error: aggregatetermios my_termios' has
      incomplete type and cannot be defined
      src/HandheldRFIDReader.cpp:218: error: `tcgetattr' undeclared (first use this
      function)

      src/HandheldRFIDReader.cpp:219: error: TCIFLUSH' undeclared (first use this function) src/HandheldRFIDReader.cpp:219: error:tcflush' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:220: error: cfmakeraw' undeclared (first use this function) src/HandheldRFIDReader.cpp:221: error:CSTOPB' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:223: error: `CRTSCTS' undeclared (first use this

      function)
      src/HandheldRFIDReader.cpp:224: error: IXON' undeclared (first use this function) src/HandheldRFIDReader.cpp:224: error:IXOFF' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:226: error: B19200' undeclared (first use this function) src/HandheldRFIDReader.cpp:226: error:cfsetospeed' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:229: error: B57600' undeclared (first use this function) src/HandheldRFIDReader.cpp:235: error:TCSANOW' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:235: error: tcsetattr' undeclared (first use this function) src/HandheldRFIDReader.cpp:236: error:TCIOFLUSH' undeclared (first use this
      function)

      src/HandheldRFIDReader.cpp: In member function int HandheldRFIDReader::_startProcessingIncomingMessages()': src/HandheldRFIDReader.cpp:259: error:pthread_create' undeclared (first use
      this function)
      src/HandheldRFIDReader.cpp: In member function int HandheldRFIDReader::_stopProcessingIncomingMessages()': src/HandheldRFIDReader.cpp:276: error:pthread_join' undeclared (first use
      this function)
      src/HandheldRFIDReader.cpp: In static member function static void* HandheldRFIDReader::_processIncomingMessages(void*)': src/HandheldRFIDReader.cpp:293: error: invalid application ofsizeof' to an
      incomplete type
      src/HandheldRFIDReader.cpp:294: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'
      src/HandheldRFIDReader.cpp:294: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'

      src/HandheldRFIDReader.cpp:295: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'
      src/HandheldRFIDReader.cpp:295: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'
      src/HandheldRFIDReader.cpp:295: error: POLLIN' undeclared (first use this function) src/HandheldRFIDReader.cpp:299: error:poll' undeclared (first use this
      function)
      src/HandheldRFIDReader.cpp:304: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'
      src/HandheldRFIDReader.cpp:304: error: invalid use of undefined type struct pollfd' src/HandheldRFIDReader.cpp:292: error: forward declaration ofstruct pollfd'
      src/HandheldRFIDReader.cpp:309: error: `pthread_exit' undeclared (first use
      this function)

      make.exe: *** [src/HandheldRFIDReader.o] Error 1

      Esecuzione terminata

      TNX A LOT

       
    • Nobody/Anonymous

      It seems that devc++ keeps using the original header file instead of cygwin ones

       
    • Nobody/Anonymous

      OK boy I've recreated tht project from the ms visual c++ and everything is ok apart for some other kind ov errors

      TNX

       
    • Wayne Keen

      Wayne Keen - 2006-06-01

      Your log is inconistent with what your first post said about your paths. (Did you look at it before you posted it?). Here is what it tells us:

      g++.exe -D__DEBUG__ -c src/HandheldRFIDReader.cpp -o src/HandheldRFIDReader.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -g -g3

      See all the c:\dev-cpp terms in there?

      Wayne

       
    • Nobody/Anonymous

      If you created the project before you set the paths, you may have to either re-create the project, set the paths in the project itself, or directly edit the .dev file.

      Changed made to the 'generic' options do not get added to the project options retrospectively.

      You also may not have correctly set the compiler set for the project.

      It is probably also worth adding the -v compiler option so that the compiler version info is added ot the log - so you can be sure which compiler is being invoked.

      Clifford

       
    • Nobody/Anonymous

      Wayne. Yes I see and that is the problem. But I've postad also my settings!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.