blackbird
No , I have a printf("Enter filename :\n"); and 200 element string of filename that will be taken by scanf on Terminal but after that the TE error occurs again .....
[Software] [SOLVED] No such file or folder for executable file with commands file and ldd
- Hadi_Lovelorn
- Posts: 141
- Joined: 2022-05-02 23:12
- Been thanked: 1 time
-
- Global Moderator
- Posts: 4079
- Joined: 2014-07-20 18:12
- Location: Europe
- Has thanked: 115 times
- Been thanked: 540 times
Re: [Software] No such file or folder for executable file with commands file and ldd
@Hadi_Lovelorn: it's rather unusual in my experience to be asked to solve riddles about the contents of presumably buggy source code in order to help someone who has full, unshared access to that code.Hadi_Lovelorn wrote: 2024-08-19 15:38 No , I have a printf("Enter filename :\n"); and 200 element string of filename that will be taken by scanf on Terminal but after that the TE error occurs again .....
- Hadi_Lovelorn
- Posts: 141
- Joined: 2022-05-02 23:12
- Been thanked: 1 time
Re: [Software] No such file or folder for executable file with commands file and ldd
Aki
No , Just he said it's because of copied code that works and I said no , I edited it and TE doesn't refer to that code ..... I want to know what TE means ....... I searched Google for *** TE error , but found 0 results .......
No , Just he said it's because of copied code that works and I said no , I edited it and TE doesn't refer to that code ..... I want to know what TE means ....... I searched Google for *** TE error , but found 0 results .......
- Hadi_Lovelorn
- Posts: 141
- Joined: 2022-05-02 23:12
- Been thanked: 1 time
Re: [Software] [SOLVED] No such file or folder for executable file with commands file and ldd
Solved ...... I just wrote printf{} twice and scanf{} with delay ...... Thanks
-
- Global Moderator
- Posts: 4079
- Joined: 2014-07-20 18:12
- Location: Europe
- Has thanked: 115 times
- Been thanked: 540 times
Re: [Software] [SOLVED] No such file or folder for executable file with commands file and ldd
It is impossible to say for sure (because you didn't share the source code of your "program"), but the reported fix for the bug in your code does not explain it and the fix is poorly plausible according to the type of error.Hadi_Lovelorn wrote: 2024-08-20 15:52 Solved ...... I just wrote printf{} twice and scanf{} with delay ...... Thanks
In the better hypothesis, you have also done something different without realising it, otherwise the error disappeared only due to unpredictable behavior due to your code.
The most probable explanation (according to the behaviour of malfunctioning program) is the one suggested by @blackbird in his last post.
- Hadi_Lovelorn
- Posts: 141
- Joined: 2022-05-02 23:12
- Been thanked: 1 time
Re: [Software] [SOLVED] No such file or folder for executable file with commands file and ldd
Aki
Hello
No , I told You , I didn't used Macros ..... I replaced them with taking file names .... But scanf was on the other line than after printf ..... So program couldn't take name of file and FILE * fr = fopen() took nothing ...... Only unrelated and misleading error .........
Hello
No , I told You , I didn't used Macros ..... I replaced them with taking file names .... But scanf was on the other line than after printf ..... So program couldn't take name of file and FILE * fr = fopen() took nothing ...... Only unrelated and misleading error .........
Re: [Software] [SOLVED] No such file or folder for executable file with commands file and ldd
That is exactly what I've written. You have a printf which should print the filename variable but the variable is not initialized.Hadi_Lovelorn wrote: 2024-08-21 07:23 Aki
No , I told You , I didn't used Macros ..... I replaced them with taking file names .... But scanf was on the other line than after printf ..... So program couldn't take name of file and FILE * fr = fopen() took nothing ...... Only unrelated and misleading error .........
- Hadi_Lovelorn
- Posts: 141
- Joined: 2022-05-02 23:12
- Been thanked: 1 time
Re: [Software] [SOLVED] No such file or folder for executable file with commands file and ldd
blackbird
That is somehow similar ...... But not exactly ..... The filename wasn't taken but the Macro didn't used and also I used printf ........ But any way Thank You .........
That is somehow similar ...... But not exactly ..... The filename wasn't taken but the Macro didn't used and also I used printf ........ But any way Thank You .........