include files

This is a discussion on include files within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I'm a programming neewbie! but i want to learn it! my problem: i use the MS Visual Studio 6! ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    1

    include files

    Hi!

    I'm a programming neewbie! but i want to learn it!

    my problem:

    i use the MS Visual Studio 6!
    when i want to compile source codes (.c) to binarys (.exe) i very often get messages like "include file not found" and then i get filenames like "unistd.h" or "sys/socket.h".

    can someone tell me where i can get those files? can it be that they are on one of the other 5 CDs of Visual Studio? (I only needet the first one to install)

    regards, passiW

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    I'd hazard a guess that you are trying to compile platform specific UNIX code on windows which isn't going to work. Those headers don't exist with any version of msvc that I know of.

    If you're still determined to try to get whatever code that uses them to work then search google for the files in question where you will no doubt be able to find some version or other.

    If you want to do socket programming on windows then try searching google or this board/network board for 'winsock'.

    Perhaps someone with more knowledge of UNIX/windows cross-platform compiling than my next-to-none may be able to offer more cogent advice.

    Good luck anyway.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    It's certainly unix code passiW is trying to compile. The include in question is for standard symbolic constants and types, although it has prototypes for many functions too. Even if the include file was converted for MSVC++, my guess is that the program would still be using lots of unix-specific function calls that simply don't exist under Windows.

    Something like Cygwin may help with the conversion however.

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Thanks for the clarification, _Elixia_; much appreciated.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug assertion failed!
    By chintugavali in forum C Programming
    Replies: 4
    Last Post: 12-11-2007, 05:23 AM
  2. Header file include order
    By cunnus88 in forum C++ Programming
    Replies: 6
    Last Post: 05-17-2006, 03:22 PM
  3. include files that are'nt in compiler's directory
    By vaibhav in forum C++ Programming
    Replies: 10
    Last Post: 03-25-2006, 10:45 AM
  4. Include files
    By disruptivetech in forum C++ Programming
    Replies: 7
    Last Post: 07-12-2005, 09:52 AM
  5. include library header in header files
    By Raison in forum C++ Programming
    Replies: 6
    Last Post: 09-27-2004, 02:50 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21