Hi,
When you do a static build of ace/tao you don't get this error. I can
imagine that you don't always want to have a static build, but this is the
only way to continue at this moment. Microsoft has to fix first a compiler
bug. I made already reports from the vs.net beta version, but they didn't
fix it yet.
Johnny
"Nanbor Wang" <nanbor@...> wrote in message
news:<000c01c1b0c3$90c140e0$b2a0fc80@...>...
> Hi Christian,
>
> Thanks for the PRF.
>
> > TAO VERSION: 1.2.1 bug fix release
> > ACE VERSION: 5.2.1
> >
> > HOST MACHINE and OPERATING SYSTEM: Windows XP
> > COMPILER NAME AND VERSION (AND PATCHLEVEL): MS VC++ 7.0
> >
> > AREA/CLASS/EXAMPLE AFFECTED: Ace/Tao Libs
> > DOES THE PROBLEM AFFECT
> > COMPILATION? YES
> > LINKING? NO
> > EXECUTION? NO
> > OTHER (please specify)?
> >
> > SYNOPSIS:
> >
> > We try to build ACE/TAO to work for a .NET client environment (VC7).
> > We plan to use TAO as middleware between XP clients and AIX server.
> > The libraries don't build.
> >
> > DESCRIPTION:
> >
> > c:\c2client\ACE_wrappers\ace\Task_T.i(15): error
> > C2491: 'ACE_Task<_ACE_SYNCH_MUTEX_T,_ACE_SYNCH_CONDITION_T>::water_mar
> > ks' : definition of dllimport function not allowed
> > c:\c2client\ACE_wrappers\ace\Task_T.i(22): error
> > C2491: 'ACE_Task<_ACE_SYNCH_MUTEX_T,_ACE_SYNCH_CONDITION_T>::getq' :
> > definition of dllimport function not allowed
> > c:\c2client\ACE_wrappers\ace\Task_T.i(30): error
> > C2491: 'ACE_Task<_ACE_SYNCH_MUTEX_T,_ACE_SYNCH_CONDITION_T>::can_put'
> > : definition of dllimport function not allowed
> > c:\c2client\ACE_wrappers\ace\Task_T.i(37): error
> > C2491: 'ACE_Task<_ACE_SYNCH_MUTEX_T,_ACE_SYNCH_CONDITION_T>::putq' :
> > definition of dllimport function not allowed
> > ... and so on ...
> >
> > Can anybody help? Is there a MS compiler problem?
> > What are the plans for ACE/TAO to be ported to MSVC 7.0? This is a
> > big issue for us ...
>
> We added ACE_Export to both ACE_Task trying to resolve a compiler
> internal error in the past. You can try to remove the "ACE_Export"
> for ACE_Task from Task_T.h and see how it goes. You might just
> see the same compiler internal errors we saw again thou. If that's
> the case, we'll have to either figure out a work around or bug
> MS to fix that. Unfortunately, we currently don't have VC7 available
> here locally, so you'll have to try it out yourself.
>
> At any rate, I'm removing these ACE_Export's from the next beta kit.
>
> Thanks,
>
> nanbor
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>