User forums > Embedded development
How to use MSPGCC in C::B
(1/1)
zach:
Hi everyone,
I meet a problem using MSPGCC (http://mspgcc.sourceforge.net/) in C::B.
Now I have set up all the options correctly in my project.
Compiler: GNU GCC Compiler for MSP430.
Compiler flags : -Wall, -Os, -mmcu=msp430x1611
Toolchain Executables: correct directory
Project options-bulid targets:
Console application,
output filename: bin\Debug\CD.elf
'Auto-generate prefix' checked, 'Auto-generate extension' unchecked.
It compile successfully, but when I try to build, it says that
'ld.exe||cannot find -lstdc++|
||=== Build finished: 1 errors, 0 warnings ===|'
I have read related topics here carefully about this problem but it doesn't work.
Did I miss any steps? Or I have to do something else to make it work?
Thanks!
MortenMacFly:
--- Quote from: zach on October 27, 2009, 11:54:44 pm ---Compiler flags : -Wall, -Os, -mmcu=msp430x1611
[...]
'ld.exe||cannot find -lstdc++|
--- End quote ---
The error arises from the linker. You are trying to link against a library (std++) that is either not available or you forgot to set the search path's for the linker correctly. Enabling the full compiler log (see my sig) might give more insight (if posted here).
What platform / compiler / OS / (C::B/OS) version are you using?
zach:
Thanks MortenMacFly!
I will read the documents your sig indicates.
I am using the latest C::B and MSPGCC on WinXP.
Navigation
[0] Message Index
Go to full version