Hello, I have been getting the following error:
ld: fatal: file my_program: creation interrupted: No space left on devicecollect2: ld returned 1 exit status while I was trying to link several .o files in my project. I googled this error and it seems to be caused by double import of external variables/constants/functions. However when I could not figure out what caused the error I stripped down my program to a simple "hello world" AND... surprize I keep getting the same error. As long as I do g++ my_program.c -o my_program everything is fine. But if first build the object and then the executable, I run into the error. g++ -c my_program.c g++ my_program.o -o my_program ld: fatal: file my_program: creation interrupted: No space left on devicecollect2: ld returned 1 exit status Also I get the error thus g++ -Wall -lsocket -lnsl -lpthread test.o Util.o -o test ld: fatal: file test: creation interrupted: No space left on device collect2: ld returned 1 exit status And if I allow my exec to be sent to a.out it works fine. g++ -Wall -lsocket -lnsl -lpthread test.o Util.o But this does not allow me to use a makefile. Does anyone know what causes this error to occur and how can I fix it? Thank you! Nadina _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
