CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Canbt build library on amd64 (https://www.cfd-online.com/Forums/openfoam-solving/58957-canbt-build-library-amd64.html)

kar April 14, 2008 06:31

Hello, when try to build pr
 
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.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text+0x1b59): undefined reference to `Foam::fvPatchField<double>::constructpatchConstru ctorTables()'
temperatureOpeningFvPatchScalarField.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.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.

hjasak April 14, 2008 06:43

(Don't want to be rude but...)
 
(Don't want to be rude but...):

wmake libso

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

Hrv

kar April 14, 2008 07:13

Yes, I forgot.. Thank you.
 
Yes, I forgot.. Thank you.


All times are GMT -4. The time now is 06:44.