Skip to content

Commit 77d4d1f

Browse files
authored
RealVect Static: Export (#3589)
## Summary Export global symbols for Windows. Seen in WarpX on conda-forge: ``` lld-link: warning: ignoring unknown argument '-lpthreads' lld-link: error: undefined symbol: public: static class amrex::RealVect const amrex::RealVect::Zero >>> referenced by libwarpx.rz.NOMPI.OMP.DP.PDP.OPMD.PSATD.QED.lib(SpectralKSpaceRZ.cpp.obj):(public: __cdecl SpectralKSpaceRZ::SpectralKSpaceRZ(class amrex::BoxArray const &, class amrex::DistributionMapping const &, class amrex::RealVect)) ``` ## Additional background conda-forge/warpx-feedstock#72 ## Checklist The proposed changes: - [x] fix a bug or incorrect behavior in AMReX - [ ] add new capabilities to AMReX - [ ] changes answers in the test suite to more than roundoff level - [ ] are likely to significantly affect the results of downstream AMReX users - [ ] include documentation in the code and/or rst files, if appropriate
1 parent 01b30b7 commit 77d4d1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/Base/AMReX_RealVect.H

+2-2
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,13 @@ public:
521521
/**
522522
This is a RealVect all of whose components are equal to zero.
523523
*/
524-
static const RealVect Zero;
524+
static AMREX_EXPORT const RealVect Zero;
525525

526526
///
527527
/**
528528
This is a RealVect all of whose components are equal to one.
529529
*/
530-
static const RealVect Unit;
530+
static AMREX_EXPORT const RealVect Unit;
531531

532532
/*@}*/
533533

0 commit comments

Comments
 (0)