help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Smalltalk-1.95.11 couldn't be made under Cygwin


From: mishima
Subject: [Help-smalltalk] Smalltalk-1.95.11 couldn't be made under Cygwin
Date: Tue, 02 Apr 2002 22:40:32 +0900 (LMT)

Hello,

I tried to make Smalltalk-1.95.11 under Cygwin and had an error
"undefined reference to address@hidden'" when building DLLs.

Its cause and workaround are described in The Cygwin FAQ
<http://cygwin.com/faq/faq_4.html#SEC93>.  
I used empty main function as shown below.

How do you think of it?

Regards,
- masahiro

--- Smalltalk-1.95.11/examples/modules/gdbm.c.orig      Sat Jan  5 05:21:38 2002
+++ Smalltalk-1.95.11/examples/modules/gdbm.c   Tue Apr  2 00:14:58 2002
@@ -153,3 +153,13 @@
 /*  vmProxy->defineCFunc("gdbm_strerror", gdbm_strerror); not universal */
 /*  vmProxy->defineCFunc("gdbm_setopt", gdbm_setopt); not universal */
 }
+
+#ifdef __CYGWIN__
+int main()
+{
+  /*
+   * This empty main function is necessary for cygwin to avoid the strange 
+   * error "undefined reference to address@hidden'" in case of creating DLL.
+   */
+}
+#endif
--- Smalltalk-1.95.11/lib-src/md5.c.orig        Wed Feb 13 21:36:33 2002
+++ Smalltalk-1.95.11/lib-src/md5.c     Tue Apr  2 00:11:41 2002
@@ -422,3 +422,12 @@
   ctx->D = D;
 }
 
+#ifdef __CYGWIN__
+int main()
+{
+  /*
+   * This empty main function is necessary for cygwin to avoid the strange 
+   * error "undefined reference to address@hidden'" in case of creating DLL.
+   */
+}
+#endif
--- Smalltalk-1.95.11/tcp/tcp.c.orig    Wed Feb  6 02:28:50 2002
+++ Smalltalk-1.95.11/tcp/tcp.c Mon Apr  1 23:56:55 2002
@@ -279,3 +279,12 @@
 #endif
 }
 
+#ifdef __CYGWIN__
+int main()
+{
+  /*
+   * This empty main function is necessary for cygwin to avoid the strange 
+   * error "undefined reference to address@hidden'" in case of creating DLL.
+   */
+}
+#endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]