foam-extend-3.2: issue compiling new libraries on Windows
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::optimisationSwitchValues_[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!! |
Quick question: Can you please provide more details? At the very least, please provide the file "Make/options".
|
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! |
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 |
All times are GMT -4. The time now is 20:24. |