[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linker error
From: |
Nadina |
Subject: |
linker error |
Date: |
25 Apr 2005 08:38:58 -0700 |
User-agent: |
G2/0.2 |
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