On Thursday 21 November 2002 8:47 pm, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | any ideas Lars?
>
> yes. I was kindo expecting this.
>
> I guess that we will only be able to have explicit extantiation for
> gcc, unless you can tell me the correct syntax for cxx.

Lars, if I change BoostFormat.h to this:

namespace boost {
extern basic_format<char>;
} // namespace boost

I get:

cxx -std strict_ansi formulamacro.C
cxx: Warning: ../../../src/mathed/../BoostFormat.h, line 13: #64-D declaration
          does not declare anything
extern basic_format<char>;
^
cxx: Error: ../../../src/mathed/../BoostFormat.h, line 13: #1275-D a storage
          class may not be specified here
extern basic_format<char>;
^

This, however, compiles. Will it achieve your goal?
namespace boost {
extern basic_format<char> a_dummy_variable;
} // namespace boost

> #ifdef __GNUG__
> #endif

Of course, this also works, but in a different way.
Angus

Reply via email to