'/usr/bin/ld: final link failed: Illegal seek collect2: ld returned 1 exit status
I am running my program on linux server and it was compiling and running fine then i made another directory and tried to compile it in that directory and it was throwing me error: /usr/bin/ld: final link failed: Illegal seek collect2: ld returned 1 exit status Any help would be appreciated.
UPDATE: I am taking files from a directory and making a list of it, then passing this list to my parser, parser performns it's functionality and outputs on a pipe, i created the pipe by using mkfifo pipename before compiling and created file filename.pipe too.
Solution 1:[1]
Try changing the execute file name for the program. My error was fixed by doing that.
g++ -o m filename
Try running the above line with your file name.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user18834893 |