From: sparhawk AT eunet DOT at (Gerhard Gruber) Newsgroups: comp.os.msdos.djgpp Subject: Re: COFF obsolete, let's port to Elf for version 3 Date: Sat, 16 May 1998 20:09:45 GMT Organization: Customer of EUnet Austria Lines: 30 Message-ID: <356368d1.2157381@news.Austria.EU.net> References: NNTP-Posting-Host: e160.dynamic.vienna.at.eu.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Destination: "Paul Derbyshire" From: Gruber Gerhard Group: comp.os.msdos.djgpp Date: Fri, 15 May 1998 20:54:53 GMT: >> Wait a minute. There a mechanism (used in 2.7.x) that allows the use of >> templates (avoiding collisions because of multiple definitions) using some >> #pragma definitions (I use it in my editor, I have a silly array template). >Can >> you explain what's wrong with it? > >It's a pragma! It's nonstandard as hell, and worse, you can't just wrap it in >#ifdef DJGPP's, because you also have to use a totally nonstandard architecture >of .h and .cc files. There's no way to use this pragma and get portable code >even with conditional compilation out the wazoo. Nevermind this doesn't solve It seesm you are wrong there. We are using this pragma and compile on HPUX, AIX and Windows 32 bit with the same sorce basis. We encapsulated the pragma with #ifdef GCC and it works quite fine with all thre compilers. On the unix platforms we use gcc and under Windows we use Visual C++ so it works. Why should it not? -- Bye, Gerhard email: sparhawk AT eunet DOT at g DOT gruber AT sis DOT co DOT at Spelling corrections are appreciated.