|
[Sponsors] |
foam-extend-3.2: issue compiling new libraries on Windows |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2016, 05:34 |
foam-extend-3.2: issue compiling new libraries on Windows
|
#1 |
New Member
Join Date: Sep 2010
Posts: 7
Rep Power: 16 |
Hi,
I installed foam-extend-3.2 on Windows, following the instructions from the homepage. Everything seems to run smoothly, so far so good. I was now trying to add a new library and for that purpose I started with copying and renaming an existing one. When I tried to compile (the basically unchanged) code, the new library would only bild with the following "undefined reference" error: myTurbulenceModel.o:myTurbulenceModel.C.rdata$.r efptr._ZN4Foam5debug18debugSwitchValues_B5cxx11E[.refptr._ZN4Foam5debug18debugSwitchValues_B5cxx11E]+0x0): undefined reference to `Foam::debug::debugSwitchValues_[abi:cxx11]' myLaminar.o:myLaminar.C.rdata$.refptr._ZN4Foam5d ebug25optimisationSwitchValues_B5cxx11E[.refptr._ZN4Foam5debug25optimisationSwitchValues_B 5cxx11E]+0x0): undefined reference to `Foam::debug:ptimisationSwitchValues_[abi:cxx11]' collect2.exe: error: ld returned 1 exit status make: *** [/c/Users/alice/Git/alice-3.2/lib/mingwGccDPOpt/libmyIncompressibleTurbulenceModel.dll] Error 1 I tried to compile the code both in the user directory and the directory where the original library had been compiled (really bad style, I know, but I wanted to make sure that no path etc was missing...). Any help would be appreciated!! |
|
January 30, 2016, 14:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick question: Can you please provide more details? At the very least, please provide the file "Make/options".
__________________
|
|
February 2, 2016, 03:12 |
|
#3 |
New Member
Join Date: Sep 2010
Posts: 7
Rep Power: 16 |
Good morning,
turns out this isse could be fixed after reinstalling foam-extend (which takes a while on Windows, thus my later response). Sorry for bothering you! |
|
April 18, 2016, 13:36 |
|
#4 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi;
I actually tried the exact thing as you mentioned in your 1st post but for foam-extend3.1. I was playing around with the src/transportModels libraries. I was getting the following error: relocation _ has invalid symbol index error, . . . main was undefined. When you mean "reinstalled" what were you previously missing then? I have been trying possibilities to check for quite some time and finally decided to recompile entire package once again. Any idea? (Sorry that my error report is not elaborate as I am presently running the package). Thanks; Saideep |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
Release of foam-extend-3.2 | fguibault | OpenFOAM Announcements from Other Sources | 15 | November 2, 2016 16:12 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |