CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   (x-post from 'bugs') mesquite-2.1.2 compile fix for newer gcc (

kmooney May 9, 2012 14:00

(x-post from 'bugs') mesquite-2.1.2 compile fix for newer gcc
Hi everyone,

I've seen a lot of heartache around over trying to compile the Thirdparty stage 3 package mesquite-2.1.2 with newer gcc (4.6.x) versions. I was able to add a couple lines into the spec file that effectively patches the source code and allows a clean installation.

The key is in this file:


Add the following:

    find ./src/ObjectiveFunction -ls -type f -exec sed -i 's/size_t/std::size_t/g' {} \;

    find ./src/QualityMetric -ls -type f -exec sed -i 's/size_t/std::size_t/g' {} \;

immediately before this line:

I think this would be compatible with older compilers as well but I'm not sure. The mantis server is down so I can't currently submit a bug report. I'll try again later though.



philippose May 9, 2012 17:32

Hi again,

Just posted an alternative patch in the original post regarding this topic in the "Bugs" section of the forum.


All times are GMT -4. The time now is 15:28.