-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined reference to dll #26
Comments
Sounds like a linking problem. How did you compilation go? |
Compilation failed. output is in first post. I will edit to make clearer |
My question was what commands you ran at command line
|
I have a makefile, the compilation command (see LIBS for my linking with refprop):
|
Please first try with the provided CMake build file |
Do I need to edit the CMakeLists.txt for my own project? Thanks |
Well, first thing is to build with CMake following the instructions, make sure you can get the examples to build and run, then next step is to add into your own code. CMake is much superior to Makefiles since they are cross-platform |
I think I got confused with what the purpose of REFPROP-headers is. I have a REFPROP license, using librefprop.so library (will be upgrading to the cmake build system soon). Since this repo is associated with CoolProp, should I not even be using this repo? Because I'm able to call a number of Refprop functions without using |
Well, librefprop.so is the historical way of building REFPROP on non-windows platforms. That has been since superceded by https://github.com/usnistgov/REFPROP-cmake This library is used for calling REFPROP from C/C++, what was used in CoolProp initially. But it has no dependency on any other CoolProp things, by design. You can use static linking or dynamic linking with this header. |
I understand. However, if I use What is the difference between these two header files? |
There are some additional functions (like the functions from REFPROP 10) in the REFPROP-headers one that are strongly advised to be used in general, unless speed is absolutely essential. |
Hi, having a small issue using the REFPROP_lib.h header.
When compiling, I am getting errors saying that there are undefined references, to "WMOLdll" for example.
At the top of my C code, I am using
I am calling the functions like this:
XMASSdll(xmol, xkg, &molwt)
And getting this as my compilation output:
Am I missing something?
Also, in the repo, there is no C example, only C++, would you consider adding that?
Thanks
The text was updated successfully, but these errors were encountered: