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
303 stars 38 forks source link

any chance of getting stdlib? #223

Closed sacredbanana closed 10 months ago

sacredbanana commented 1 year ago

I'm trying to write an app but unable to use either socket.h or bsdsocket.h because they require stdlib.h. Would it be possible to add this?

BartmanAbyss commented 1 year ago

You can try to just copy it from the official gcc/libc into your directory and adjust it to your needs.

sacredbanana commented 1 year ago

Hmm I can't even use the included bsdsocket.h because it's saying __asm is undefined

BartmanAbyss commented 1 year ago

You have to make sure it includes the inline/ version, not the pragmas/ or the defines/ version (compare https://github.com/BartmanAbyss/vscode-amiga-debug/blob/master/bin/win32/opt/m68k-amiga-elf/sys-include/proto/exec.h)