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

run demo,no error,but result is wrong #9

Open
whycng opened this issue Dec 5, 2024 · 1 comment
Open

run demo,no error,but result is wrong #9

whycng opened this issue Dec 5, 2024 · 1 comment

Comments

@whycng
Copy link

whycng commented Dec 5, 2024

I compiled this project using MSVC v141 and generated an EXE file without any errors. When I ran the 'hello world' demo,

CFortranTranslator.exe -Ff demos/helloworld.f90 > target.cpp
Cost time:0

the generated C++ file looked like this:

/* File:                                                              */
/* Author:                                                            */
/* This codes is generated by CFortranTranslator                      */
/* CFortranTranslator is published under GPL license                  */
/* refer to https://github.com/CalvinNeo/CFortranTranslator/ for more */
/**********************************************************************/
#include "../for90std/for90std.h" 
#define USE_FORARRAY 
int main()
{
	
	return 0;
}

. There were no error messages, but the result was incorrect.

@CalvinNeo
Copy link
Owner

CalvinNeo commented Dec 9, 2024

Hi @whycng, Could you run in debug mode by CFortranTranslator.exe -dFf demos/helloworld.f90 > target.cpp, and we could see what happened.
However, I guess it is because the relative path demos/helloworld.f90 is wrong. You can try with an absolute path like C:/xxx/xxx/demos/helloworld.f90

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