vancegroup / stlport-avr

Unmaintained - stlport C++ standard library with modifications for use with AVR microcontrollers -- see wiki
https://github.com/vancegroup/stlport-avr/wiki
Other
54 stars 13 forks source link

Problem compiling stlport #3

Open arliones opened 8 years ago

arliones commented 8 years ago

Hi, I'm facing problems building your project for use in an AVR application. I'm NOT using Arduino. I've posted bellow the output of the 'make' command at the stlport root. Apparentlly, and I don't know why, it is not finding the file "new.h". The file exists!

A few translations from Portuguese:

Tools versions:

Any hints? Thanks! Arliones.

arliones.hoeller:stlport$ ./configure --target=avr
arliones.hoeller:stlport$ make 
make -C build/lib all;
make[1]: Entrando no diretório `/home/arliones.hoeller/Libraries/avr/stlport/build/lib'
avr-c++ -fno-rtti -fno-exceptions -g -Os -w -Wall -ffunction-sections -fdata-sections  -fPIC -O2 -fuse-cxa-atexit -fvisibility=hidden  -D_STLP_NO_RTTI -I../../stlport  -c -o obj/avr-gcc/so/dll_main.o ../../src/dll_main.cpp
In file included from ../../stlport/stl/_new.h:54:0,
                 from ../../stlport/stl/_alloc.h:47,
                 from ../../stlport/memory:29,
                 from ../../src/dll_main.cpp:41:
../../stlport/new.h:27:26: fatal error: new.h: Arquivo ou diretório não encontrado
 #    include_next <new.h>
                          ^
compilation terminated.
make[1]: ** [obj/avr-gcc/so/dll_main.o] Erro 1
make[1]: Saindo do diretório `/home/arliones.hoeller/Libraries/avr/stlport/build/lib'
make: ** [all] Erro 2
carlsonp commented 8 years ago

Is this the file it's referencing?

https://github.com/vancegroup/stlport-avr/blob/STLport-master-avr/stlport/new

If so, perhaps try to add the .h file extension to the end?

Or, if it's a different file, try adding the directory to your include path.