Thread: Funny Dev C++ error

  1. #1
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355

    Funny Dev C++ error

    Hey all,

    Today I was at college and I decided to download and install Dev C++. Everything was fine until I tried to compile, and it said something about not supporting a directory type, unfortunately I can't remember exactly what it said.

    The only thing I can think of is it either has trouble with the "My Documents" type dirs, or the remote drive dir, can anyone shed some light on this? I'll have more info tomorrow.

    OS is Windows of course.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    I think that it internally uses DOS filenames which of course are limited to 8(?) characters, and choke on spaces.

    Alternately, you you move a project to another directory, you'll get an error, too.

    Which version are you running?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Dev does seem to choke on spaces in the directory, but you can get more then 8 characters without any problems.

  4. #4
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    It's the latest version 5 beta.

    I'll report back tomorrow with the exact error.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  5. #5
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Me again, first of all please note that this is NOT a bump.

    I've given up on the idea of using dev C++ at my college, I don't have enough space. But I'm still curious as to the error.

    I'm quite sure the error was that it doesn't support "UNC" dir names. So can anyone clarify what are "UNC" directory names? I still think it has something to do with the "My" prefix directories.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  6. #6
    Registered User
    Join Date
    Jun 2003
    Location
    Austria
    Posts
    55
    UNC directory names are Names of a directory in a network. e.g. "\\server\directory1\dir2\"
    But I think Windows does some bad things with the My Documets Folders (Icons...)


    Ice

  7. #7
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    It's not a pure DevC++ limitation. MinGW has some serious problems with certain pathnames (like pathnames with spaces i.e. C:\Program Files\).
    I think they've worked around some of those limitations in the more recent versions, but there are still some issues. i.e. if you compile a program with profiler support and link the mingw profiler library, the profile data won't be written to disk if your program is in a folder like C:\Documents and Settings etc.
    [code]

    your code here....

    [/code]

  8. #8
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    I'm quite sure the error was that it doesn't support "UNC" dir names. So can anyone clarify what are "UNC" directory names? I still think it has something to do with the "My" prefix directories
    You may be able to get away with doing a drive mapping. in other words, make the UNC path drive X or whatever. Then the path is no longer UNC and Dev may be able to understand it.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM