-
Notifications
You must be signed in to change notification settings - Fork 82
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
Question about paths and the length of the char arrays for paths #130
Comments
|
Thank you Eric for the prompt reply. This was an edge case due to WSL2 + Windows requirements. I looked for
and found it here:
As I was looking at the source code, I also noticed that As I mentioned in the previous email, I didn't get an error yet, but I worked on the simplest of the demos. I'll post an update if I encounter problems. ... I have changed the assignments to
to
With this change I can call
So far, so good! Best regards, BU -edit- included change of |
Aloha 42 Team.
I just installed
42
on WSL2 and I verified that it works correctly with the demos provided. It has improved a lot since I tried it about 10(?) years ago. Thank you!When I tried to run it on a Windows directory I got an error that made me "reverse engineer" the following command line
$ ./42 ../../../mnt/c/very/very/very/very/very/very/very/very/long/path/here/Missions/Agena-D_ADR/42sim/InOut
The command failed with
Error opening ssions/Agena-D_ADR/42sim/InOut/42.mtl
I copied
42.mtl
to the directory, reran, and got the same error. I assumed that this had to do with path definitions so I edited42.h
to increase the length of the path char arrays.I changed
EXTERN char InOutPath[80];
EXTERN char ModelPath[80];
EXTERN char CmdFileName[80];
to
EXTERN char InOutPath[512];
EXTERN char ModelPath[512];
EXTERN char CmdFileName[512];
remade 42, ran the command line, and confirmed that it worked.
Now I have two questions:
ModelPath
and it seems that42
assumes some form of relative path to generateModelPath
.)Before you suggest it, I am required to store the working (
InOut
) files in the Windows file system in specific directories.Thank you.
BU
The text was updated successfully, but these errors were encountered: