problem with headers.h

  • Tomasz Chmielewski

    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,

    • 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:


        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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks