Author Topic: Setting up a C++ environment for Ndless ?  (Read 3848 times)

0 Members and 2 Guests are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Setting up a C++ environment for Ndless ?
« on: May 08, 2014, 11:53:42 am »
I tried some searches, but nothing helped.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Setting up a C++ environment for Ndless ?
« Reply #1 on: May 08, 2014, 12:46:03 pm »
What do you mean by "C++ environment"?

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Setting up a C++ environment for Ndless ?
« Reply #2 on: May 08, 2014, 01:12:42 pm »
I'm guessing dev environment.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Setting up a C++ environment for Ndless ?
« Reply #3 on: May 08, 2014, 01:26:14 pm »
It's enough to download the ndless SDK and get a compiler working, best (and tested) way is with the build_toolchain.sh script in ndless-sdk/toolchain/.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Setting up a C++ environment for Ndless ?
« Reply #4 on: May 08, 2014, 04:17:28 pm »
I meant : I know how to compile C programs, but not C++.

But I found why it wasn't working : I use to use the .cc extension for C++ programs. A quick look at the makefile told me it had to be .cpp files. Now it works.