Article View: comp.windows.interviews
Article #362Re: what is the purpose of OS/_defines.h??
From: Mark Linton
Date: Fri, 17 Apr 1992 19:17
Date: Fri, 17 Apr 1992 19:17
28 lines
1868 bytes
1868 bytes
In article <9204162048.AA26891@.foxtrot.ccmrc.ucsb.edu.>, doug@FOXTROT.CCMRC.UCSB.EDU (Douglas Scott) writes: |> I have been struggling to port my IV 2.6 code to IV 3.0.1, using the 2.6-compatible |> mode as an interim level of progress. I have a class in my program called 'File', |> which is adapted from the old libg++ library class (which is gone now). I also use the |> still-included class, 'String', from the new libg++. I was able to get everything to |> compile, but got three mysterious link errors: |> |> ld: Undefined symbol |> |> _search__C8osStringiiPCci |> |> ___6osFile |> |> ___opPCc__C8osString |> |> |> After much searching, I finally dicovered that IV 3.0.1 redefines a bunch of libg++ |> symbols in OS/_defines.h. Can someone explain why this is done, and how can I get |> these symbols resolved? The general approach is that <library/_defines.h> has preprocessor defines to map <global library name> to <library prefix><global library name>. The include file <library/enter-scope.h> and <library/leave-scope.h> can be used to "open" or "close" the library scope, which effectively defines or undefines the symbols using the _defines.h or _undefs.h files. I don't know why you are getting undefined symbols. You can use nm on the library .o files to see what the symbol is getting defined as.
Technical Details
Message-ID:
<jltbdvk@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sgi!fido!marktwain.rad.sgi.com!lintonReferences:
<9204162048.AA26891@.foxtrot.ccmrc.ucsb.edu.>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sgi!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Subject: Re: what is the purpose of OS/_defines.h?? Message-ID: <jltbdvk@fido.asd.sgi.com> Sender: news@fido.asd.sgi.com (Usenet News Admin) Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) Organization: sgi References: <9204162048.AA26891@.foxtrot.ccmrc.ucsb.edu.> Date: Fri, 17 Apr 1992 19:17:46 GMT Lines: 28