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

undefined reference to `Foam::UOPstream::writeQuoted`

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2018, 05:36
Unhappy undefined reference to `Foam::UOPstream::writeQuoted`
  #1
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
Pfiffikus is on a distinguished road
While using OpenFOAM's toolbox for some CFD implementation the linker complains about a missing reference

Any idea which library is necessary?

Many thanks in advance
Thomas
Pfiffikus is offline   Reply With Quote

Old   March 27, 2018, 09:30
Thumbs up solved: undefined reference to `Foam::UOPstream::writeQuoted`
  #2
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
Pfiffikus is on a distinguished road
Since we use '-std=c++11' for our routines, due to some calls using std::string even OpenFOAM's interfaces doesn't fit ...

After recompiling the complete library (using an appropriately modified $WM_DIR/rules/*/c++*) linking succeeded!
Pfiffikus is offline   Reply With Quote

Old   February 18, 2019, 06:12
Default similar problem
  #3
New Member
 
Benjamin
Join Date: Oct 2016
Posts: 2
Rep Power: 0
benjamintu is on a distinguished road
Hallo Pfiffikus,

I think I have the same error.
Compiling an openFoam application gives me a similar error message:


undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'


I would be very thankful if you could explain which libaries you recompiled and where and how I can appropriately modify $WM_DIR/rules/*/c++*.
Knowing I ask for a lot I would be utterly thankful!!

Best regards,
Benjamin
benjamintu is offline   Reply With Quote

Old   February 20, 2019, 07:27
Smile for clarification
  #4
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
Pfiffikus is on a distinguished road
Quote:
Originally Posted by benjamintu View Post
`Foam::UOPstream::writeQuoted(std::__cxx11::basic_ string<char, ...'
seems to be typical

Quote:
Originally Posted by benjamintu View Post
... which libaries you recompiled
_all_ referenced is recommended, sometimes necessary; all is useful

Quote:
Originally Posted by benjamintu View Post
... modify $WM_DIR/rules/*/c++*
all these files specify the options for compiler's call, thus file c++ should finally contain
`CC = -std=c++11 ...` among other settings

Hth
Pfiffikus

Last edited by Pfiffikus; February 20, 2019 at 07:38. Reason: clarification of which file contains what
Pfiffikus 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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 16:23.