02-20-2013 01:19 PM - edited 02-20-2013 01:19 PM
When I compile my project it gives a link error:
src\main.o: could not read symbols: File in wrong format
Looking at the compile commands I'm seeing the object files being created with -V4.6.3,gcc_ntox86_cpp and the linker trying to use -V4.6.3,gcc_ntoarmv7le_cpp
If I right click on the project and select Properties, is specifies the target as ARM v7 and the compiler/assembler/linker options including -V4.6.3,gcc_ntoarmv7le_cpp which is correct. But if I right click the "src" dir and select properties is says -V4.6.3,gcc_ntox86_cpp which is giving the conflict. Where did it get this from?
I tried "Restore default" and changing the options around but it didn't correct the problem. Is this a bug? How can I fix the "-V4.6.3,gcc_ntox86_cpp" issue? Is there something I'm not seeing? Do I have to manually edit the .project files to fix the problem?
The IDE version is
Build id: v201302012246
Solved! Go to Solution.
02-20-2013 02:52 PM
Solved my own problem. Went to the individual cpp files and selected "Resource Configurations" -> reset to default. Not sure why it had selected x86 before and the target change didn't propogate.
10-29-2013 06:09 PM
10-29-2013 09:46 PM
Ok, I managed to fix this "x86" and "arm" problem. However in my case the "Reset to default..." menu for each source file was disabled. But it was enabled for the whole "src" folder. So I did reset and built after that. Everything was built for ARM.