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

[OpenFOAM.com] Trouble compiling Waves2Foam with OpenFoam-v2106

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2022, 07:09
Default Trouble compiling Waves2Foam with OpenFoam-v2106
  #1
New Member
 
Join Date: Jul 2021
Posts: 16
Rep Power: 5
Legacy is on a distinguished road
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
Legacy is online now   Reply With Quote

Old   December 22, 2022, 06:42
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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
olesen is offline   Reply With Quote

Reply

Tags
openfoam, waves2foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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


All times are GMT -4. The time now is 15:50.