Author Topic: gcc vector error  (Read 4010 times)

0 Members and 1 Guest are viewing this topic.

Offline kevinkore3

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +0/-0
    • View Profile
gcc vector error
« on: June 12, 2014, 10:34:52 pm »

When I try to do #include <vector> I get an error about vector.tcc not being found


nspire-g++ -Wall -W -marm -Os -c main.cpp
In file included from main.cpp:4:0:
c:/users/asdf/other/ndless-v3.6-beta-r990-sdk/yagarto/lib/gcc/../../arm-none-eabi/include/c++/4.6.2/vector:70:28: fatal error: bits/vector.tcc: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
Built.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: gcc vector error
« Reply #1 on: June 12, 2014, 10:49:50 pm »
If you want to use the STL you should probably use Vogtinator's fork of Ndless. Rebuild your toolchain using the script included.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: gcc vector error
« Reply #2 on: June 13, 2014, 06:20:04 am »
xD My fork of ndless is no universal remedy, especially not if your toolchain is broken!
What happens with
Code: [Select]
arm-none-eabi-g++ -W -Wall -c main.cpp -o main.o?
You could try a newer YAGARTO version (4.7.2): http://sourceforge.net/projects/yagarto/files/YAGARTO%20for%20Windows/20121222/yagarto-bu-2.23.1_gcc-4.7.2-c-c%2B%2B_nl-1.20.0_gdb-7.5.1_eabi_20121222.exe/download

Offline kevinkore3

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +0/-0
    • View Profile
Re: gcc vector error
« Reply #3 on: June 13, 2014, 02:48:18 pm »
I upgraded yagarto and now it's fixed

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: gcc vector error
« Reply #4 on: June 14, 2014, 01:53:52 am »
Good to know :) Let us know when you encounter more problems.
I'm not a nerd but I pretend: