Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Workaround for missing 'export' keyword

0 views
Skip to first unread message

Sarir Khamsi

unread,
Aug 22, 1998, 3:00:00 AM8/22/98
to
I have some header files w/ templates that are getting large and want
to break them up (into .hpp & .cpp files). It appears that the
'export' keyword is my friend who will help me to do this. It also
appears that VC++ 5.0 does not support that keyword yet. Does anyone
know of a workaround (besides getting rid of templates)? Thanks.

Sarir

--
Sarir "Riri" Khamsi Kwajalein, Marshall Islands
email: kha...@kmrmail.kmr.ll.mit.edu w: 805-355-1534
Time Zone: GMT +12 hours f: 805-355-3833

[ Send an empty e-mail to c++-...@netlab.cs.rpi.edu for info ]
[ about comp.lang.c++.moderated. First time posters: do this! ]

Alexandre Oliva

unread,
Aug 24, 1998, 3:00:00 AM8/24/98
to
Sarir Khamsi <kha...@ll.mit.edu> writes:

> I have some header files w/ templates that are getting large and want
> to break them up (into .hpp & .cpp files). It appears that the
> 'export' keyword is my friend who will help me to do this. It also
> appears that VC++ 5.0 does not support that keyword yet. Does anyone
> know of a workaround (besides getting rid of templates)? Thanks.

Explicit instantiation is the answer. A tool that would automatically
manage the list of needed template instantiations would be handy, but
I don't know any such tool. g++/egcs -frepo does something quite
close to that; you might use the .rpo files it produces in order to
build template-instantiation source files, but it would not be exactly
straightforward...

--
Alexandre Oliva
mailto:ol...@dcc.unicamp.br mailto:aol...@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil

0 new messages