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

Suse Linux 91 port

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 5, 2006, 13:22
Default Dear All, I have just done
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Dear All,

I have just done a compilation of OpenFOAM-1.3 on an older Suse-9.1 system and the issue I've found is so amusing that I wanted to share it (somebody may hit it in the future). :-)

The compilation fails in global.C with the message like

/usr/include/demangle.h:476: error: expected ',' of '...' before typename

Looking at the offending header, the function declaration says:

extern int
cplus_demangle_fill_builtin_type (struct demangle_component *fill,
const char *typename);


i.e. "typename" is used as a name of the parameter, which totally confuses the C++ compiler!


The fix is easy: edit error.C and around the include statement re-define the name locally, i.e.


#define typename HrvsTypeName
#include <demangle>
#undef typename


and all is well.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

 


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
star3.24 and SUSE Linux 10.0 Timothy Siemens 3 October 17, 2006 12:39
CFX 10 Pre/Post and Linux SuSE 10.0 Bernhard Dobmeier CFX 2 July 11, 2006 14:09
CFX and SUSE linux Paul CFX 5 December 23, 2004 21:53
Fluent 5.x with SuSE Linux 7.1 (7.0)? Elmar Riesmeier FLUENT 3 April 8, 2001 13:34
Linux/Alpha port ? Prateep Chatterjee FLUENT 1 June 5, 2000 21:28


All times are GMT -4. The time now is 08:49.