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

Linked list errors

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2005, 04:35
Default An interesting porting problem
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
An interesting porting problem:

Trying to link the engineFoam executable requires both the combustionThermophysicalModels and the triSurface libraries at the same time.

In triSurface, there is a file

./triSurface/interfaces/STL/readSTLASCII.L

which uses flex to do some of its work. Also, there is a

./combustion/chemistryReaders/chemkinReader/chemkinLexer.L

in the chemistry readers, which relies to flex as well. The flex implementation in both cases creates a .C file which produces a bunch of symbols in each of the libraries; when I link them together I get a linker error due to multiple symbols. The linker is, of course, right!

The solution I am toying with is to namespace both things to sort things out properly, but is looks pretty painful and I'm searching for an easier solution. Any ideas?

For interested parties, this is the last bits of the Mac OSX FOAM port.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   September 13, 2005, 09:56
Default idea: rewrite STL reader in C+
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
idea: rewrite STL reader in C++. Is simple enough format.
mattijs is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit coompressor OpenFOAM Installation 0 November 12, 2008 20:53
Linked list errors hjasak OpenFOAM 0 October 7, 2005 07:16
Linked list errors hjasak OpenFOAM 0 October 7, 2005 07:14


All times are GMT -4. The time now is 00:56.