freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still more questions on GCC


From: Dave Nystrom
Subject: Still more questions on GCC
Date: Fri, 26 Oct 2001 17:11:14 -0600
User-agent: SEMI/1.13.7 (Awazu) CLIME/1.13.6 (中 ノ庄) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386-redhat-linux)

I am trying to build one of our low level library packages called
TecFramework.  I seem to be having tons of difficulty.  TecFramework makes
heavy use of templates.  So far, I have yet to get the first file to
compile.  I'm beginning to fear that gcc may work fundamentally different
than either EDG based compilers or CodeWarrior.  We can compile TecFramework
with CodeWarrior and with EDG based compilers like KCC in strict mode and SGI
CC.  I don't know about CodeWarrior but I believe that EDG based compilers
like KCC only compile templates when they are referenced and on the initial
pass only do rudimentary analysis like checking for matching curly braces,
etc.  So, if a template with certain values for the template parameters is
never referenced, the code never gets compiled and thus may even have bugs
that would prevent it from compiling if it were referenced.

Does GCC work in some different manner so that templates get compiled even if
they are not referenced.  I don't know if I am even making sense here but I
am worried that I may be trying to compile code in TecFramework that has
never been compiled by our other compilers and thus may be buggy.  Is that
possible?

Thanks,

-- 
Dave Nystrom                    email: address@hidden
LANL X-3                        phone: 505-667-7913     fax: 505-665-3046

reply via email to

[Prev in Thread] Current Thread [Next in Thread]