BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
318 stars 40 forks source link

stdlib.h missing?! #37

Closed nyteshade closed 4 years ago

nyteshade commented 4 years ago

I am profoundly impressed with this extension and it will definitely lead to me writing more Amiga code this year and going forward. I desperately wish there was a version for macos but in the meantime I went to use calloc and found that I could not compile because stdlib.h could not be found.

Is it a setting or is simply not there?

BartmanAbyss commented 4 years ago

Hi, there's no support for the standard library, you have to use the AmigaOS functions like AllocMem, please see the included example (Amiga: Init Project) for reference.

nyteshade commented 4 years ago

Are there any plans for introducing the standard library bits? AllocMem, and AllocVec are a pain in comparison. If not, its okay, but it would sure be nice if they existed. I'll just write a wrapper in the meantime.

BartmanAbyss commented 4 years ago

Not at the moment, sorry.