ibell / coolprop

Deprecated version - go to
https://github.com/CoolProp/CoolProp
MIT License
24 stars 16 forks source link

Undefined symbols when compiling FLUENT wrapper #264

Open superpippo89 opened 8 years ago

superpippo89 commented 8 years ago

Hi Ian,

first of all thank you for your great work. I'm trying to use the CoolProp wrapper for Fluent 17.0, but with any success for the moment. Specifically there must be something wrong with the shared library libudf.so. After lunch the script compile.sh (i've only have to delete "-e" on lines 57 and 65) everything seems to be ok. But when call the on demand udf on fluent i get:

"/ansys_inc/v170/fluent/fluent17.0.0/lnamd64/2ddp/fluent.17.0.0: symbol lookup error: libudf/lnamd64/2ddp/libudf.so: undefined symbol: Z5PropsPccdcdS The fluent process could not be started."

After checking the library with "nm -u libudf.so" i get the following output: http://pastebin.com/FmXFTQh3 Seems like something is gone wrong during the linking process. I've spend a lot of time changing flags,compilers, etc, but with any results.

I've also tried creating a shared library using the new 5.1.2 sources, but i've obtained similar result with "nm -u". I've really no idea what the problem is. Since i'm only a mechanical engineer and i'm not too much skilled in coding, i was hoping that you could help me.

Thank you for your time, regards

ibell commented 8 years ago

Ummm... probably you want to be filing an issue against 5.1.2. V4 is no longer officially supported.

Looks like you are trying to use the Props function, but we don't have that function anymore in CoolProp. Sadly, we don't have anyone who can test Fluent building either.

I'm guessing that you want unmangled symbols, as the undefined symbol Fluent can't find seems like a decorated function.

On Mon, Apr 25, 2016 at 3:31 PM, superpippo89 notifications@github.com wrote:

Hi Ian,

first of all thank you for your great work. I'm trying to use the CoolProp wrapper for Fluent 17.0, but with any success for the moment. Specifically there must be something wrong with the shared library libudf.so. After lunch the script compile.sh (i've only have to delete "-e" on lines 57 and 65) everything seems to be ok. But when call the on demand udf on fluent i get:

"/ansys_inc/v170/fluent/fluent17.0.0/lnamd64/2ddp/fluent.17.0.0: symbol lookup error: libudf/lnamd64/2ddp/libudf.so: undefined symbol: Z5PropsPccdcdS The fluent process could not be started."

After checking the library with "nm -u libudf.so" i get the following output: http://pastebin.com/FmXFTQh3 Seems like something is gone wrong during the linking process. I've spend a lot of time changing flags,compilers, etc, but with any results.

I've also tried creating a shared library using the new 5.1.2 sources, but i've obtained similar result with "nm -u". I've really no idea what the problem is. Since i'm only a mechanical engineer and i'm not too much skilled in coding, i was hoping that you could help me.

Thank you for your time, regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/ibell/coolprop/issues/264