Hallo everybody, Please allow me a stupid question: Can I use string variables in C++ with uVision, like I do with VC++6 ?
Peace and inspiration to all Andy
Still wrong. The following code compiles without warnings:
#include <string> using namespace std; int main(void) { string a = "test"; return 0; }
your code returns errors like those:
test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section locale$$data(lc_ctype_c.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section i._ZNKSt6locale13_C_make_facetERKNS_2idEbiPFPN4__rw15__rw_facet_baseEiPKcjE(locale.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section i._ZN4__rw15__rw_locale_impC1EPKcjj(locale.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section i._ZNSt5ctypeIcE12_C_initfacetERKSt6locale(char.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(fseek.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(stdio.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(fopen.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(bigflt0.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section i._ZNSt12ctype_bynameIcE17_C_get_mask_tableEPKc(char.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section CL$$btod_e2e(btod.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(_printf_wctomb.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(_printf_intcommon.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(_printf_hex_int_ll_ptr.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section i._ZN4__rw25__rw_throw_exception_noexEiPc(rwthrowproc_impl_noex.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .constdata(bigflt0.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section t._ZN4__rw18__rw_locale_vectorISt18__rw_open_cat_dataE6resizeEj(messages.o). test2.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .text(_printf_longlong_dec.o).
I don’t know why Maybe some settings? My target is cortex m3 Any idea? andy
Embedded programming is not so easy, eh? You should start with an example program that closely matches your target hardware. Once you get it to compile and run, you can start making modifications.
If it can be done, this is all I need to know.
A simple thanks is not enough A honest one is better. Thanks Mike