Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-12-27 21:26:18


I've investigated what it takes to compile auto-link with commeau.

It seems that the following in config/platform/win32.hpp contains:

#if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC) \
# define BOOST_HAS_DECLSPEC
#endif

which results in BOOST_HAS_DECSPEC being defined. However, I get a compile
error when BOOST_???_DECL is expanded to _decl(dllimport) or
_decl(dllexport) . So my proposed solution is: to replace the above with:

// Comeau seems to recognize declspec but doesn't recognize
// dllexport and dllimport. So we can't use it
#if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC) \
&& !defined(__COMO__)
# define BOOST_HAS_DECLSPEC
#endif

This will suppress auto-link stuff for this compiler.

I would like to check in this change. Does anyone know of a reason why this
is not a good idea?

Robert Ramey

>
> What's undefined that should be? Are you sure that Commeau supports
> those #pragma's anyway?
>
>> d) The above makes me wonder if comeau config files have not been
>> kept up. So my question is:
>>
>> Have comeau config files been kept up with changes required to
>> support auto-link. If so, why is not comeau appearing in the test
>> matrix?
>
> No one is running it, if no one is running it then it's config will
> not get updated, if you want to run the Commeau regression tests and
> keep it's
> config up to date then I'm sure it would be appreciated.
>
> John.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk