Results 1 to 3 of 3

Thread: Header file missing

  1. #1
    it's not fun, don't do it Moon Rabbits's Avatar
    Join Date
    Mar 2005
    Posts
    5,582

    Default Header file missing

    Through the process of being an idiot I accidently saved over my string.h file with another one that doesn't work. Does anyone know where I can obtain the original string.h file that comes with Dev-Cpp, without reinstalling the entire compiler?

  2. #2
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    You could probably recreate it from string.c, since a header file is effectively the .c file, but with only the functions defined and without content or inner workings to allow including it without needing to include the gory details of the used function, if I remember correctly - C++ isn't something I've played with much though You could compare other .c and corresponding .h files to see how they reflect each other

    This is assuming MS lets you have string.c anyway, otherwise probably better to reinstall, or copy from an installation on another computer
    Problems playing downloaded videos? Try CCCP


  3. #3
    it's not fun, don't do it Moon Rabbits's Avatar
    Join Date
    Mar 2005
    Posts
    5,582

    Default

    Bleh, I tried copying various string headers and libraries into seperate .h and .cpp files, but nothing worked like the original because these were all custom string libraries, or trimmed libraries.

    I just reinstalled, probably better that way too since my DevCpp folder was all messy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •