Menu

problem with headers.h

Help
2009-08-11
2013-04-24
  • Tomasz Chmielewski

    Hi,
    Unfortunately I have some problems with compilation. I'm using eVC4.

    I have such listing:
    c:\documents and settings\user\pulpit\iperf-windowsce\iperflib\headers.h(154) : fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory

    socket.h, time.h and signal.h are problematic too. these are named as unix headers.
    Do I have not all neccessery libraries?

    Thanks a lot,
    Tom

     
    • mihaii

      mihaii - 2009-08-12

      You need to define WIN32 pre-processor variable. Do you know how to do this? It is in Project, Settings, C/C++ tag, Preprocessor definitions (in eVC3).

       
      • Tomasz Chmielewski

        Thanks for reply!

        I have there this:

        _WIN32_WCE=$(CEVersion),ARM,_ARM_,$(CePlatform),ARMV4I,UNDER_CE=$(CEVersion),UNICODE,_UNICODE,NDEBUG

        What should it be?

        I used to learn C and C++ a couple of years ago, unfortunately I've forgotten almost everything and  now I'm stuck.

         
        • mihaii

          mihaii - 2009-08-13

          Go to Projects, Settings, select the target for which you want to build for, go to C/C++ tab and add at the end of the Pre-Processor line WIN32. The parameters are separated by comma.

           

Log in to post a comment.