|
[Sponsors] |
[OpenFOAM.com] Trouble compiling Waves2Foam with OpenFoam-v2106 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2022, 07:09 |
Trouble compiling Waves2Foam with OpenFoam-v2106
|
#1 |
New Member
Join Date: Jul 2021
Posts: 16
Rep Power: 5 |
Hello Foamers.
I am trying to compile Waves2Foam but experiencing some reference linking issues. I tried modifying $WM_DIR/rules/*/c++ file but it did not help. Any ideas? Thanks. Here is the output: Code:
Make/linux64GccDPInt32Opt/porousWaveFoam.o:(.data.rel.ro._ZTVN4Foam8OPstreamE[_ZTVN4Foam8OPstreamE]+0x80): undefined reference to `Foam::UOPstream::writeQuoted(std::string const&, bool)' collect2: error: ld returned 1 exit status |
|
December 22, 2022, 06:42 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
looks like you might be using the gold linker, which is more stringent about the linking requirements.
The new OpenFOAM versions have this type of linking: Code:
LINK_LIBS = $(c++DBUG) LINKLIBSO = $(CC) $(c++FLAGS) -shared \ -fuse-ld=gold LINKEXE = $(CC) $(c++FLAGS) \ -fuse-ld=gold # Link dummy stub to resolve libPstream symbols used by libOpenFOAM ifneq (,$(findstring -lOpenFOAM,$(PROJECT_LIBS))) LINKEXE += -L$(FOAM_LIBBIN)/dummy -lPstream endif |
|
Tags |
openfoam, waves2foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 08:30 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
[swak4Foam] Difficulties compiling with OpenFOAM v5.0 | MauricioReis | OpenFOAM Community Contributions | 19 | October 16, 2019 01:58 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |