Hi Nuno,

So when you run 'make export' the build runs correctly, right?

Best regards,

Flavio

Em qui., 11 de nov. de 2021 às 21:14, Nuno Barcellos
<nunobarcel...@gmail.com> escreveu:
>
> Hey Flavio :)
>
> Yes, I can build and run the helloxx example when it is inside the
> nuttx/apps tree (I've been using sim:libcxxtest configuration).
>
> I'm having problems when trying to build it outside the nuttx tree by using
> the nuttx-as-library (make export).
> I followed the C++ CMake example in the documentation and was able to get
> it working on an STM32 target.
> However, the build error I mentioned comes up when I set the target to the
> simulator.
>
> I'm not sure if the cmake toolchain is set correctly. I'm using:
>
> set(CMAKE_SYSTEM_NAME Linux)
> set(CMAKE_SYSTEM_PROCESSOR sim)
>
> and set the compiler and tools to standard g++.
>
> Cheers,
> Nuno
>
>
>
> Em qui., 11 de nov. de 2021 às 20:42, Flavio Castro Alves Filho <
> flavio.al...@gmail.com> escreveu:
>
> > Hello Nuno,
> >
> > Before starting working with cmake, it is important that the C++
> > configuration in nuttx is building and running.
> >
> > Did you get this part working?
> >
> > Best regards,
> >
> > Flavio
> >
> > Em qui., 11 de nov. de 2021 19:17, Nuno Barcellos <nunobarcel...@gmail.com
> > >
> > escreveu:
> >
> > > Hello!
> > >
> > > Could anyone get the C++ CMake HelloWorld example working for the
> > > simulator?
> > > I'm using the sim:libcxxtest config but am getting the following error:
> > >
> > > nuttx-export/include/libcxx/cstdlib:154:9: error: ‘::at_quick_exit’ has
> > not
> > > been declared
> > >  154 | using ::at_quick_exit;
> > >
> > > Thanks,
> > > Nuno
> > >
> >
>
>
> --
> Nuno Bernardes Barcellos
> *Politecnico di Milano & University of São Paulo*
> M.Sc. in Electronics Engineering
> +5534988273589 <+393896649806> | nunobarcel...@gmail.com



-- 
Flavio de Castro Alves Filho

flavio.al...@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Reply via email to