CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   newbie question - simple pTraits (https://www.cfd-online.com/Forums/openfoam-installation/87591-newbie-question-simple-ptraits.html)

ans April 24, 2011 08:48

newbie question - simple pTraits
 
Under cygwin when I try to compile pTraits with g++ 4.3.4 I get the following error:

$ g++ -o test pTraitsTest.C -DWM_DP
pTraits.H: In instantiation of `Foam::pTraits<double>':
pTraitsTest.C:38: instantiated from here
pTraits.H:52: error: base type `double' fails to be a struct or class type
pTraitsTest.C: In function `int main()':
pTraitsTest.C:38: error: `typeName' is not a member of `Foam::pTraits<double>'

Is it possible to compile pTraits in this manner?

wyldckat April 24, 2011 10:20

Already answered here: http://www.cfd-online.com/Forums/ope...tml#post304866


All times are GMT -4. The time now is 19:17.