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

Compiling problem with VS2005+Intel C++ 11 about operator()() overloading

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2012, 17:19
Default Compiling problem with VS2005+Intel C++ 11 about operator()() overloading
  #1
New Member
 
zouchu
Join Date: Jun 2009
Posts: 1
Rep Power: 0
zouchu is on a distinguished road
I want to compile OpenFOAM 2.0.x with VS2005+Intel C++ 11. There is a operator()() overloading problem. I think somebody has solved this problem. Could someone help me?

Quote:
1>------ Build started: Project: OpenFOAM20, Configuration: Debug Win32 ------
1>Compiling with Intel(R) C++ 11.0.066 [IA-32]... (Intel C++ Environment)
1>mapDistribute.C
1>F:\Work\OpenFOAM\include\OpenFOAM\../../src/OpenFOAM/containers/Lists/FixedList/FixedListI.H(448): error: no instance of function "Foam::FixedList<T, Size>::Hash<HashT>:perator() [with T=int, Size=2U, HashT=int]" matches the argument list
1> argument types are: (const int, unsigned int)
1> object type is: Foam::FixedList<int, 2U>::Hash<int>
1> val = HashT()(lst[i], val);
1> ^
1> detected during:
1> instantiation of "unsigned int Foam::FixedList<T, Size>::Hash<HashT>:perator()(const Foam::FixedList<T, Size> &, unsigned int) const [with T=int, Size=2U, HashT=Foam::FixedList<int, 2U>::Hash<int>]" at line 51 of "F:\Work\OpenFOAM\include\OpenFOAM\../../src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H"
1> instantiation of "Foam::label={int} Foam::HashTable<T, Key, Hash>::hashKeyIndex(const Key &) const [with T=Foam::nil, Key=Foam::labelPair, Hash=Foam::FixedList<int, 2U>::Hash<Foam::FixedList<int, 2U>::Hash<int>>]" at line 238 of "F:\Work\OpenFOAM\include\OpenFOAM\../../src/OpenFOAM/containers/HashTables/HashTable/HashTable.C"
1> instantiation of "bool Foam::HashTable<T, Key, Hash>::set(const Key &, const T &, bool) [with T=Foam::nil, Key=Foam::labelPair, Hash=Foam::FixedList<int, 2U>::Hash<Foam::FixedList<int, 2U>::Hash<int>>]" at line 85 of "F:\Work\OpenFOAM\include\OpenFOAM\../../src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H"
1> instantiation of "bool Foam::HashTable<T, Key, Hash>::insert(const Key &, const T &) [with T=Foam::nil, Key=Foam::labelPair, Hash=Foam::FixedList<int, 2U>::Hash<Foam::FixedList<int, 2U>::Hash<int>>]" at line 119 of "F:\Work\OpenFOAM\include\OpenFOAM\../../src/OpenFOAM/containers/HashTables/HashSet/HashSet.H"
1> instantiation of "bool Foam::HashSet<Key, Hash>::insert(const Key &) [with Key=Foam::labelPair, Hash=Foam::FixedList<int, 2U>::Hash<Foam::FixedList<int, 2U>::Hash<int>>]" at line 153 of "..\..\src\OpenFOAM\meshes\polyMesh\mapPolyMesh\ma pDistribute\mapDistribute.C"
1>
1>compilation aborted for ..\..\src\OpenFOAM\meshes\polyMesh\mapPolyMesh\map Distribute\mapDistribute.C (code 2)
The website http://www.scai.fraunhofer.de/en/ope...m/porting.html has something which is similar to this problem:

There have been problems with different instantiations of \texttt{HashTable}
(\texttt{HashTableI.H, HashTable.H, HashTable.C}), e.g.
\texttt{operator()()} cannot be distinguished between different
types. This has lead to linker errors because the symbols got
stripped during linking.
zouchu 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
Problem compiling OpenFOAM 1.6.x deji OpenFOAM Installation 1 October 7, 2009 23:00
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 14:44
some problem about compiling Nektar ztdep Main CFD Forum 0 July 30, 2005 09:43
some problem about intel fortran ztdep Main CFD Forum 1 June 30, 2005 07:19
PROBLEM COMPILING!!! PLEASE HELP! Toni Cominceanu Main CFD Forum 0 May 7, 2005 07:28


All times are GMT -4. The time now is 04:48.