Christian Convey wrote:
>>> I've tried untarring the FLTK 1.1.9 source code on a Mac, which by default
>>> treats filenames with the same kind of case sensitivity as Windows:
>>> it remembers case, but you can't have to files that differ only by case.
>>> Anyway, I get a conflict with files such as: "FL/Fl.h" and "FL/Fl.H".

        Really, what error are you getting?

>> You simply have to use the correct filename with the correct case sensitivy :
>> #include <FL/Fl.H>
> 
> Thanks, but that's not what I'm talking about.  According to one of my
> users who has a Mac:  When he tries putting the source code for fltk 1.1.9
> onto his Mac file system, the operation fails because he can't have, for
> example, Fl.H and Fl.h  (which differ only be case) in the same directory at 
> the same time.

        It would be best if the error and context could be posted.

> FLTK ships with both those files, so it's not clear what the right way around 
> this is.

        Docs and code that come with FLTK should be the "correct" examples.

        If there are two versions of a particular file on the file system,
        most likely one is a symlink created by 'make install'.

        AFAIK the links should not cause trouble or conflicts.

        I believe the reason for this is more for the other unix variants
        that *are* case sensitive (I believe mac osx is the only unix variant
        whose default file system is case insensitive).

        I think the reasoning behind this was that FLTK historically has always
        used .H for the class header files, and users on the two biggest OS's,
        Windows and OSX, were getting away with using '.h' because of the case
        insensitivity. They'd release their tools and libs, not realizing builds
        of their tools on case sensitive OS's would fail (which they typically
        didn't have access to).

        So to help those folks, I believe the symlinks are created by 'make 
install'
        to allow their apps to build anyway.

        OSX should be able to handle the links, whether the OS's case 
sensitivity
        is turned on or not. I believe this is an option that can be changed
        at the time the file system is created, eg: man newfs_hfs | grep case
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to