CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

foam-extend-3.2: issue compiling new libraries on Windows

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2016, 05:34
Default foam-extend-3.2: issue compiling new libraries on Windows
  #1
New Member
 
Join Date: Sep 2010
Posts: 7
Rep Power: 16
guest1044 is on a distinguished road
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!!
guest1044 is offline   Reply With Quote

Old   January 30, 2016, 14:21
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Can you please provide more details? At the very least, please provide the file "Make/options".
__________________
wyldckat is offline   Reply With Quote

Old   February 2, 2016, 03:12
Default
  #3
New Member
 
Join Date: Sep 2010
Posts: 7
Rep Power: 16
guest1044 is on a distinguished road
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!
guest1044 is offline   Reply With Quote

Old   April 18, 2016, 13:36
Default
  #4
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
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
Saideep is offline   Reply With Quote

Reply


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


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


All times are GMT -4. The time now is 04:32.