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

Header files not found

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2006, 13:44
Default I have been trying to compile
  #1
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 7
kalldrexx is on a distinguished road
I have been trying to compile OpenFOAM quit a bit for the past week and have yet to succeed on any of our systems (Solaris and Linux). I have followed the directions to the T from the wiki page (I copy/pasted most of the commands it told me to use).

At first I was confused as the error that it showed was the "/usr/bin/ld: cannot find -lOpenFOAM" Error. After doing some reading I saw that it is actually being caused by a previous error in compiling. After putting all the output into a file I found the problem:

------------------------------------
SOURCE_DIR=global
SOURCE=global/global.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.3'"' -I/home/ssd/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/global.o
In file included from global/global.C:61:
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:41:22: error: demangle.h: No such file or directory
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C: In static member function ‚static void Foam::error::printStack(Foam:stream&)‚:
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:193: error: ‚auto_demangling‚ was not declared in this scope
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:194: error: ‚cplus_demangle‚ was not declared in this scope
make: *** [Make/linuxGcc4DPOpt/global.o] Error 1
-------------------------------------------------

This happns both on my Solaris and my Fedora core systems, both instances followed the compiling instructions on the wiki exactly. If anyone can help I would be very appreciative.

Also one unrelated last thing, is there any way to compile OpenFoam using more then one processor? I tried to alias make="make -j8" but it didn't work.

Thanks!
kalldrexx is offline   Reply With Quote

Old   July 7, 2006, 13:53
Default Have a look through the forum
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,718
Rep Power: 19
hjasak will become famous soon enough
Have a look through the forum for demangle - all explained.

For parallel compilation add

setenv WM_NCOMPPROCS 8

to your environment.

Enjoy,

Hrv
__________________
Hrvoje Jasak
hjasak is offline   Reply With Quote

Old   July 10, 2006, 09:25
Default Ah I missed that section of th
  #3
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 7
kalldrexx is on a distinguished road
Ah I missed that section of the instructions. So I followed the binutils sections exactly and I now get this error:

/home/ssd/OpenFOAM/linux/binutils-2.15/include/demangle.h:460: error: expected ‚,‚ or ‚...‚ before ‚typename‚

Any ideas?
kalldrexx is offline   Reply With Quote

Old   July 11, 2006, 12:48
Default Best comment out that section
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
mattijs is on a distinguished road
Best comment out that section (printStack) in error.C - it is not really essential.

Once all is working see what you need to include.
mattijs is offline   Reply With Quote

Old   July 11, 2006, 13:44
Default Cool. It semes to be continui
  #5
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 7
kalldrexx is on a distinguished road
Cool. It semes to be continuing to compile. Thanks :D
kalldrexx is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
no libudf files found after building it pilli4u FLUENT 2 March 22, 2007 16:08
Missing header files when compiling PVFoamReaderso joey OpenFOAM Paraview & paraFoam 0 September 17, 2006 20:55
Header files shuo OpenFOAM Running, Solving & CFD 1 September 10, 2006 03:38
how to add header file shanu FLUENT 1 February 14, 2006 09:00
uhf.h header file giridhar_tech FLUENT 0 February 7, 2006 07:51


All times are GMT -4. The time now is 07:52.