I have created a simple C++ project using Studio 7.0.1006. Then using "Add Class", I added a simple class called CGPIO.

To this class I added a public method called Initialize. The code compiles and runs until I add the following code to `main.cpp` to instantiate a CGPIO object: `CGPIO* pGPIO = new CGPIO()`.

Compiling that program results in an "undefined reference to '\_sbrk'" error. A more involved program generated undefined reference to several other routine (e.g. \_exit, \_close, \_read, etc.).

I have tried playing with linker settings - specifically *Do not use standard files* and *Do not use default libraries*. Selecting *Do not use default libraries*, the \_sbrk error goes away, but a undefined reference to \_\_libc\_init\_array shows up.

I could not find much information on C++ programs for the SAMDxx series. Is there an good working example to start from? Do I need to add a different library to the Linker settings?