gregor@oit.itd.umich.edu (Gregor Purdy) (05/14/91)
I found today while programming under Think C 4.05 that when #include-ing files, things don't work if you are including an alias to a file. For instance: ---------------------- Directory Structure ---------------------- :HD80: Project: SomeHeader.h ... SomeDirectory: SomeHeader.h <ALIAS to :HD80:Project:SomeHeader.h> SomeProgram.c ----------------------------------------------------------------- If SomeProgram.c #includes "SomeHeader.h", the info never gets included (presumably, the alias isn't dereferenced.) Anybody else run into this problem? System: Mac IIcx, 8Mb RAM, System 7.0 Release. ----------------------------------------+------------------------------------- Gregor N. Purdy, NeXT Campus Consultant | "I am that which is not everything OIT, University of Michigan | else." -- Gregor N. Purdy Ann Arbor, MI 48109 +------------------------------------- gregor@oit.itd.umich.edu | One species, one government! ----------------------------------------+-------------------------------------
rmh@apple.com (Rick Holzgrafe) (05/16/91)
In article <1991May14.125101.12573@terminator.cc.umich.edu> gregor@oit.itd.umich.edu (Gregor Purdy) writes: > I found today while programming under Think C 4.05 that when #include-ing > files, things don't work if you are including an alias to a file. I'm not surprised. Aliases are automatically resolved by the Finder and by the Standard File package. But any code that simply opens files on its own will see the contents of the alias rather than the contents of the original file. There is a call to the Alias Manager that an app can make to have an alias resolved. I'm sure that Think C 4.05 was a simple "get it running" patch, and that there will be a more 7.0-studly upgrade along one of these days. Disclaimer: "I'm sure" means "I hope and trust". I have no connection with Symantec. ========================================================================== Rick Holzgrafe | {sun,voder,nsc,mtxinu,dual}!apple!rmh Software Engineer | AppleLink HOLZGRAFE1 rmh@apple.com Apple Computer, Inc. | "All opinions expressed are mine, and do 20525 Mariani Ave. MS: 3-PK | not necessarily represent those of my Cupertino, CA 95014 | employer, Apple Computer Inc."