CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Linked list errors (https://www.cfd-online.com/Forums/openfoam/61024-linked-list-errors.html)

hjasak September 13, 2005 05:35

An interesting porting problem
 
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

mattijs September 13, 2005 10:56

idea: rewrite STL reader in C+
 
idea: rewrite STL reader in C++. Is simple enough format.


All times are GMT -4. The time now is 06:43.