|
[Sponsors] |
On compiling - CompactListListI.H (expected type-specifier before ‘>’) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2009, 07:19 |
On compiling - CompactListListI.H (expected type-specifier before ‘>’)
|
#1 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17 |
I'm trying to compile 1.6.x, but I get an error:
/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/CompactListListI.H:74: error: expected type-specifier before ‘>’ token.. and I get a make error. Performing a text search in the lnInclude-dir reveals that this is the only file that doesn't have a type-specifier. Is this on purpose? I'm using system compiler on Ubuntu 9.10 64bit. |
|
December 2, 2009, 07:39 |
|
#2 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17 |
As there are several other "*ListI.H" in that directory, I compared the content, and made a change in the CompactListListI.H:
CompactListList<T>* nullPtr = reinterpret_cast< >(0);to CompactListList<T>* nullPtr = reinterpret_cast<CompactListList<T>*>(NULL);The ./Allwmake is currently running, but has so far not experienced the same errors as before. Last edited by kjetil; December 2, 2009 at 07:54. Reason: typo |
|
December 2, 2009, 09:22 |
|
#3 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17 |
Done. Seemed to work. Also, had to disable (<- remove) tecplot360 directory, as it was nagging about files that could not be found. True, as they (i.e TECIO.H) are now placed in a subfolder.
|
|
December 2, 2009, 11:16 |
|
#4 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Thanks. 1.6.x should now build cleanly (on linux64 at least) , including foamToTecplot360.
|
|
December 2, 2009, 12:43 |
|
#5 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17 |
The only problem when making the PV3FoamReader, is when using 'system' compiler, it looks for '/bin/c++', not '/usr/bin/c++'. If I change to compiler in settings.sh to 'OpenFOAM', it works. Should I add a symbolic link in '/bin/ to fix this?
|
|
December 3, 2009, 12:16 |
|
#6 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Bit complex. Since cmake produces non-relocatable cmake files the buildParaview script replaces some hardcoded paths with environment variables, one of which is WM_COMPILER_DIR
workaround 1: change in the paraview build directory, in platforms/linux64Gcc/Common/KWCommon/KWCommonBuildSettings.cmake the setting for CMAKE_BUILD_SETTING_C_COMPILER CMAKE_BUILD_SETTING_CXX_COMPILER workaround 2: make a directory structure with a bin/c++ and bin/c in it (can be softlinks to your real compiler) and set WM_COMPILER_DIR to it. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 17:08 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 08:43 |
wmake compiling Problem with OF1.5 | openTom | OpenFOAM Installation | 4 | May 3, 2009 14:44 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |