|Adding new source files bugs linking stage [message #964737]
||Tue, 30 October 2012 15:13
| Tom Jansen
Registered: October 2012
Recently I ran into the problem that for some reason I cannot add new source files to my project anymore. I am using Eclipse IDE for C/C++ Developers. Version: Indigo Service Release 2. The problem that I am currently facing is that when I add a new *.cpp file to the project and link to the header, the project fails during linking and is dropping random letters from the last to-be-included library.
For example when I create a file called SoundSource.cpp and link to the header the console will show "-lSDL_ttf
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL_tf
collect2: ld returned 1 exit status"
However when I rename the file it sometimes does manage to pass linking stage. I am pretty lost where to start searching for a possible solution. First I thought it was the 161th file being a problem, because when I removed another unused file it simply managed to compile again. I am aware it might have nothing to do with Eclipse IDE at all but maybe gcc is fooling me, however I am pretty clueless at the moment.
If anyone experienced something similar or do you have a suggestion what I could do, please let me know.
With kind regards,
Powered by FUDForum
. Page generated in 0.02934 seconds