CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   newbie question - simple pTraits (

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:

All times are GMT -4. The time now is 01:06.