On Wed, Jan 27, 2021 at 1:34 PM Josh Helzer <[email protected]> wrote:
>
> Greetings!
>
> First-time CHICKEN user here!  :D
>
> In working through the "Getting started" chapter of the manual, I've hit a 
> snag in "Accessing C libraries" 
> (https://wiki.call-cc.org/man/5/Getting%20started#accessing-c-libraries-), 
> namely that gcc (via csc) complains about multiple definitions of both 
> "C_toplevel" and "main" when run on Windows.
>
>
> Steps: ...

Hi Josh,

I was able to reproduce this with both 32-bit and 64-bit MinGW under
MSYS2. The cause is that csc expects object files to have the .obj
extension, not a .o extension, when using MinGW. If you build fib.c
with "gcc -c fib.c -o fib.obj" and update its reference in the csc
line it will work.


Thanks,
Tim

Reply via email to