Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Problem compiling stlport #3

Open
arliones opened this issue Nov 24, 2015 · 1 comment
Open

Problem compiling stlport #3

arliones opened this issue Nov 24, 2015 · 1 comment

Comments

@arliones
Copy link

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:

  • Entrando no diretório: Entering directory
  • Arquivo ou diretório não encontrado: File or folder not found
  • Saindo do diretório: Leaving directory

Tools versions:

  • avr-gcc 4.8.2
  • avrlibc 1.8.0
  • binutils-avr 2.20.1
  • GNU make 3.81

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
Copy link
Member

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants