|
[Sponsors] |
March 11, 2008, 08:25 |
I'm trying to compile a new cl
|
#1 |
New Member
Mateusz Slowikowski
Join Date: Mar 2009
Location: Waterloo, Canada
Posts: 12
Rep Power: 17 |
I'm trying to compile a new class, however I'm having problems with the compilation, these are some of the errors:
OpenFOAM.out /usr/lib/../lib64/crt1.o(.text+0x21): In function `_start': : undefined reference to `main' Make/linux64Gcc4DPOpt/populationBalanceModel.o(.text._ZNK4Foam14Geometri cFieldId NS_12fvPatchFieldENS_7volMeshEE4typeEv[Foam::GeometricField<double,>::type() const]+0x3): In function `Foam::GeometricField<double,>::type() const': : undefined reference to `Foam::GeometricField<double,>::typeName' Make/linux64Gcc4DPOpt/populationBalanceModel.o(.text._ZNK4Foam16Dimensio nedField IdNS_7volMeshEE4typeEv[Foam::DimensionedField<double,>::type() const]+0x3): In function `Foam::DimensionedField<double,>::type() const': : undefined reference to `Foam::DimensionedField<double,>::typeName' Make/linux64Gcc4DPOpt/populationBalanceModel.o(.text._ZNK4Foam12fvPatchF ieldIdE4 typeEv[Foam::fvPatchField<double>::type() const]+0x3): In function `Foam::fvPatchField<double>::type() const': : undefined reference to `Foam::fvPatchField<double>::typeName' My ".H" file has the following includes: #ifndef populationBalanceModel_H #define populationBalanceModel_H #include "IOdictionary.H" #include "dimensionedScalar.H" #include "volFields.H" #include "surfaceFields.H" and my ".C" file has the following includes: #include "populationBalanceModel.H" #include "addToRunTimeSelectionTable.H" #include "dimensionedScalar.H" #include "fixedGradientFvPatchFields.H" #include "surfaceFields.H" #include "fvc.H" #include "fvCFD.H" This is the ~/make/options file: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/OpenFOAM/lnInclude LIB_LIBS = and this is the ~/make/files file: populationBalanceModel/populationBalanceModel.C LIB = $(WM_PROJECT_USER_DIR)/lib/linux64Gcc4DPOpt/libpopulationBalanceModel any advice on the undefined references? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Undefined reference to %60yyFlexLexeryywrapb | arjaan | OpenFOAM Installation | 13 | June 1, 2016 12:33 |
Undefined reference | mateusz_slowikowski | OpenFOAM Running, Solving & CFD | 7 | February 27, 2015 14:35 |
Undefined reference to %60mainb | seang | OpenFOAM Installation | 8 | February 1, 2014 13:48 |
Undefined reference to %60yyFlexLexeryywrapb | zhoubinwx | OpenFOAM Bugs | 1 | May 28, 2008 05:57 |
MPICH : undefined reference to.. | Vincent | Siemens | 3 | March 24, 2005 12:30 |