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

Build JSBSim by VS2019 and use C++ API #888

Closed
DreamerSurpass opened this issue Apr 11, 2023 · 1 comment
Closed

Build JSBSim by VS2019 and use C++ API #888

DreamerSurpass opened this issue Apr 11, 2023 · 1 comment

Comments

@DreamerSurpass
Copy link

Hello,

I use VS2019 to build JSBSim and try to use C++ API to interface with JSBSim just like tutorial code
`#include <FGFDMExec.h>

int main(int argc, char **argv)
{
JSBSim::FGFDMExec FDMExec;
FDMExec.LoadScript(SGPath(argv[1]));
FDMExec.RunIC();
bool result = true;
while (result) result = FDMExec.Run();
}`

I also added the JSBSim.lib and src path, but failed to run.
image

I'm not sure is this a bug and how to fix it. I use Windows 10, VS2019, C++ language.

@bcoconni
Copy link
Member

bcoconni commented Apr 11, 2023

@DreamerSurpass this issue is a duplicate of the discussion #887 that you have opened a few hours ago.
In addition, this has nothing to do with a bug nor is it a feature request so this issue is closed and the topic shall be continued in discussion #887.
Thanks.

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

No branches or pull requests

2 participants