Hello,
I am still new to Code::Blocks (using 13.12), and very new to the Lubuntu OS. I have somehow managed to break my IDE, and I don’t know how to fix it.
I was trying to use the third party NMEA library (for GPS stuff) from an older project, and was having trouble linking to the library. After some frustration, I decided to build a fresh, clean project. When I created the new project, and just tried to build the default Hello World file that is automatically generated, I still got the same errors. I’m not even telling my new project to look for the library yet, and my compiler search directory and link libraries are all empty. I don’t understand why it’s still trying to find the third party library.
When I try to build the default project, I get this error message in the build log.
/usr/bin/ld: cannot find /home/......./nmealib: File format not recognized
I tried removing the library from the directory, which resulted in
g++: error: cannot find /home/......./nmealib: No such file or directory
(also, I’m using a c file, so I don’t see why g++ is being used instead of gcc)
My usual MO in cases like this is to do a fresh install to reset everything. I did a fresh install of Code::Blocks, g++, and ld (binutils). I created a fresh project after all that. The problem still persists.
I tried compiling the c file (with gcc) outside of Code::Blocks using a makefile, and that worked properly (so I’m assuming it’s not gcc’s fault).
At this point, I don’t even want to link to the nmea library. I just want Code::Blocks or the linker to stop looking for the NMEA library at all. Does anyone know if this is a Code::Blocks issue or a ld issue? If it’s a Code::Blocks issue, where might I look to solve this problem?
Thank you for your time.