Replies: 2 comments 1 reply
-
Hello Andrew, This should definitely not be happening :) EDIT: I just noticed that the segfault is only when no |
Beta Was this translation helpful? Give feedback.
-
Ah yes, that makes sense, the variadic arguments cannot be references. On second thought, there is a WIP commit that will make variadics support references, #568. This however, will not work for the printf arguments as these arguments themselves are not pointers. |
Beta Was this translation helpful? Give feedback.
-
I would like to use printf(), or something similar, as a basic debugging tool, but I keep running into problems either building or running. If I follow the printf example in the documentation, like so:
it builds and links fine, but I get a segfault when I run it. The same happens for the hello_world.st if I remove {ref} from puts:
On the other hand if I try to use {ref} in printf:
I get this error during building:
I am not sure if I should be using a reference or not, but I suspect I should, since the printf() c function takes a pointer as its first argument.
Any information about how to get this working would be welcome.
Thanks,
Andrew
Beta Was this translation helpful? Give feedback.
All reactions