[plt-scheme] Embedding mzscheme on cygwin - linking problems

From: Ittai Balaban (balaban at cs.nyu.edu)
Date: Tue Nov 8 13:51:17 EST 2005

I'm trying to build a small C app that embeds mzscheme. No problems on
Linux. On Windows, using cygwin, I've tried both the binary DrScheme
distribution (299.400) and building my own from source. In either case I
get link errors as follows:

~> gcc embed-test.c -o embed-test
   -I /usr/local/plt/include /usr/local/plt/lib/gcc/libmzgcxxxxxxx.lib
+0x2c): undefined reference to `_scheme_basic_env'
fu000001.o:: undefined reference to `_libmzschxxxxxxx_lib_iname'
nmth000000.o:: undefined reference to `__nm__scheme_current_thread'
Info: resolving _scheme_current_thread by linking to
__imp__scheme_current_thread (auto-import)
collect2: ld returned 1 exit status

I'm pretty much at a loss with shared libraries on Windows. Any help


Posted on the users mailing list.