From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: michael.williams@arm-sponge.com (Michael Williams) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/13 Message-ID: <61sn4j$t08@sis.cambridge.arm.com>#1/1 X-Deja-AN: 280029927 References: <612k6f$i79@news-rocq.inria.fr> <343D64F1.167E@lanl.gov> <1997Oct10.170030.1@eisner> <343F7D9A.C475526E@openkast.demon.co.uk> X-Address: 90 Fulbourn Road, Cherry Hinton, Cambridge, CB1 4JN, UK X-Note: Remove the word "sponge" from my email address before replying Reply-To: michael.williams@arm-sponge.com X-Disclaimer: This posting does not express the views of Advanced RISC Machines Limited, unless explicitly stated. Organization: Advanced RISC Machines Ltd Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <343F7D9A.C475526E@openkast.demon.co.uk>, >The compilers keep a database of precompiled header information >for each source file in a project. If you change the include files >or add definitions ahead of the include files then this is detected >and the precompiled header information is regenerated by the >compiler/preprocessor. You would hope so. One time, however, we found a linkage error in an application, which was due to a (legacy) C library being linked to C++, where the header for library didn't include extern "C" declarations. Rather than change the header (which would have openned up a can of worms), we instead put extern "C" around the #include. The result - it still didn't work because VC++ had precompiled the header. > So it's not impossible and it is workable. That said, yes it is possible, but when it does go wrong, it takes a while to understand why! Mike.