Skip to content
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

Error 101 - while loading nitrogen.fld during calling of IntSetup #620

Open
tpsudhakar opened this issue Sep 14, 2024 · 1 comment
Open

Comments

@tpsudhakar
Copy link

Hi,

I am pretty new to reprop.dll. And we have recently ported our C++ code to MSVC and compile refprop using Intel Fortran compiler and from then onwards I am getting an error while call IntSetup(). I have populated all the required fields int CINPUT.cstrin but still for some reason it reading something wrongly and not able to find the file.

Below are my decalaration

extern __declspec(dllimport) struct {
char cstrin[255] = {'\0'};
char cstr[255] = { '\0' };
}CINPUT;

void INTSETUP(int* iNoComp, int* iRefCode);

And I have populated the cstrin like below to make sure the string is null terminated but I am still running into this file not found error. Any help is much appreciated.

strcpy(CINPUT.cstrin, sString.data());
CINPUT.cstrin[sString.length() + 1] = { '\0' };

Error:

image

@ianhbell
Copy link
Contributor

That is not a function that is part of REFPROP. Please put together an example that does not use any of your functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants