IRC channel logs
2024-10-09.log
back to list of logs
<bigbookofbug>im trying to learn the C side of guile (on guix), and i'm running into an issue with #include "libguile/scmconfig.h" not being included. what would be the proper way to compile this on the command line? <bigbookofbug>im following along in the guile reference manual currently <bigbookofbug>checking the directory, it is there, so i'm not sure whats going on <mwette>your C code should have only one guile include: #include <libguile.h> <mwette>if you are writing a loadable object <bigbookofbug>i have the #include <guile/3.0/libguile.h> currently, as it seems to be unable to find libguile.h <bigbookofbug>but its the sample repl with a hostname function from the manual <mwette>gcc -I/usr/include/guile/3.0 w/ #include <libguile.h> <bigbookofbug>i havent directly referenced scmconfig.h, but it seems to error out loading libguile? im familiar with scheme but not as familiar with libguile <bigbookofbug>no such luck , is this potentially a better question for the guix irc? <bigbookofbug>(for reference, there's no /usr/ dir on the guix system) <mwette>does the command `pkg-config --cflags guile' generate something <bigbookofbug>yes, that's where i got the error from, it states the error is in line 30 of scm.h: "libguile/scmconfig.h: No such file or directory" <cpli>mwette: are you still opposed to renaming enum variant/struct field symbols? <mwette>cpli: In my work-in-progress, that is in, with the context arg, called as(rename "FOO_BAR" 'enum) , or 'type 'variable 'field 'function <cpli>oh that's great, that's exactly what i was implying last time! that would let me rename all of the webgpu.h header in a nice fashion! <mwette>cpli: I'm going to change internal structure of enum, struct and union to use procedures instead of alists. This opens door for hash tables or perfect hash tables (with which I've been experimenting)