[ECOS] "_impure_ptr"?
Michele Portolan
michele.Portolan@imag.fr
Thu Mar 16 17:14:00 GMT 2006
Hello, I am having some problems in adapting an application to eCos:
when I compile it by itself no problems, everyting works just fine.
If on the other hand I put it into an object and link it inside an eCos framework I get the following error:
D:\cygwin\home\portolan\testbenches\proto\src\aescrypt2-rc1/aes_monte_carlo.c:80: undefined reference to `_impure_ptr'
D:\cygwin\home\portolan\testbenches\proto\src\aescrypt2-rc1/aes_monte_carlo.c:80: undefined reference to `_impure_ptr'
What is this "_impure_ptr"? How can I resolve the error?
Thanks anyone,
Michele
PS: to be complete: here are the compiler calls
to create the object:
sparc-elf-gcc -g -O2 -msoft-float -I -I../../../build/mingw_ecos/install/include -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -c -o ../../objs/aes_monte_carlo.o aes_monte_carlo.c
to link it:
sparc-elf-gcc -g -msoft-float -nostartfiles -I../build/mingw_ecos/install/include -I./src/jpeg-6b -L../build/mingw_ecos/install/lib -T../build/mingw_ecos/install/lib/target.ld -msoft-float -g -nostdlib -fvtable-gc -Wl,--gc-sections -Wl,-static -o proto_ecos proto_ecos.o objs/jpeg_interface.o ./objs/jdatadst.o ./objs/jpeg_compressor_thread.o ./objs/libjpeg.a objs/aes_monte_carlo.o
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list