CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Canbt build library on amd64

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 14, 2008, 06:31
Default Hello, when try to build pr
  #1
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Hello,

when try to build previously used library on amd64, build fails like this:

$ wmake
Making dependency list for source file temperatureOpeningFvPatchScalarField.C
SOURCE=temperatureOpeningFvPatchScalarField.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/cpp/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cpp/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/temperatureOpeningFvPatchScalarField.o
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/cpp/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cpp/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linux64GccDPOpt/temperatureOpeningFvPatchScalarField.o -L/home/cpp/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt \
-lOpenFOAM -liberty -ldl -lm -o OpenFOAM.out
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Make/linux64GccDPOpt/temperatureOpeningFvPatchScalarField.o: In function `__static_initialization_and_destruction_0(int, int)':
temperatureOpeningFvPatchScalarField.C.text+0x1b59): undefined reference to `Foam::fvPatchField<double>::constructpatchConstru ctorTables()'
temperatureOpeningFvPatchScalarField.C.text+0x1b74): undefined reference to `Foam::fvPatchField<double>::patchConstructorTable Ptr_'

.. plenty of undefined references..

Should it be "-o OpenFOAM.out", not temperatureOpeningFvPatchScalarField.so?

Any idea?

K.
kar is offline   Reply With Quote

Old   April 14, 2008, 06:43
Default (Don't want to be rude but...)
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
(Don't want to be rude but...):

wmake libso

Got it? I ma sure you have been told about this before.

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

Old   April 14, 2008, 07:13
Default Yes, I forgot.. Thank you.
  #3
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Yes, I forgot.. Thank you.
kar 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
Canbt build foamDebugSwitches gitsnedbutzi OpenFOAM Installation 1 July 21, 2008 11:48
Parafoam on AMD64 frank178 OpenFOAM Installation 1 October 4, 2005 18:35
AMD64 Athlon or Intel P4 adorean OpenFOAM 1 September 7, 2005 12:52
Fluent for AMD64 confirmed J.P. FLUENT 1 October 8, 2003 17:42
The AMD64 platform is perfect for CFD! Snorre Heimsund Main CFD Forum 10 September 9, 2003 07:44


All times are GMT -4. The time now is 20:11.