output is truncated and only works after building 3-4 times

I'm getting a really weird error when I run my client program.

1
2
3
Invoking: GCC C++ Linker
g++  -o"assignment2"  ./src/MyString.o ./src/stringtest.o   
g++: ./src/MyString.o: No such file or directory


Then I build the project 2-3 more times and all of a sudden it starts working, no more No such file or directory error! The problem then is that the the program works fine but it truncates the output. No error displayed but it just outputs about three-fourths of the output. The name of the client program is stringtest.cpp, the implementation file is MyString.cpp, and the header file is mystring.h and I'm using eclipse.

First of all what is MyString.o? Then, when it works why would it truncate the output? FYI, I changed the preferences on the eclipse console so that limit console output is not selected.
Topic archived. No new replies allowed.