CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

On compiling - CompactListListI.H (expected type-specifier before ‘>’)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2009, 07:19
Default On compiling - CompactListListI.H (expected type-specifier before ‘>’)
  #1
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
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.
kjetil is offline   Reply With Quote

Old   December 2, 2009, 07:39
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
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
kjetil is offline   Reply With Quote

Old   December 2, 2009, 09:22
Default
  #3
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
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.
kjetil is offline   Reply With Quote

Old   December 2, 2009, 11:16
Default
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks. 1.6.x should now build cleanly (on linux64 at least) , including foamToTecplot360.
mattijs is offline   Reply With Quote

Old   December 2, 2009, 12:43
Default
  #5
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
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?
kjetil is offline   Reply With Quote

Old   December 3, 2009, 12:16
Default
  #6
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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