all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unresolved reference to "strcasecmp" building CVS Emacs on Windows with MS Visual Studio 6.0
@ 2006-08-04 16:42 Fran Litterio
  2006-08-04 17:23 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Fran Litterio @ 2006-08-04 16:42 UTC (permalink / raw)


When I do "nmake bootstrap" to build the latest CVS Emacs on Windows
XP with MS Visual Studio 6.0 installed, I get an unresolved reference
to "strcasecmp" when linking temacs.exe. I had to apply the following
patch to get a clean build:

--- src/s/ms-w32.h      21 Apr 2006 09:24:03 -0000      1.40
+++ src/s/ms-w32.h      4 Aug 2006 16:38:50 -0000
@@ -386,6 +386,7 @@
 #define stricmp   _stricmp
 #define tzset     _tzset
 #define tzname    _tzname
+#define strcasecmp _stricmp

 #ifdef HAVE_NTGUI
 #define abort  w32_abort

I'm not sure if the above patch is the best way to solve this problem,
but it works for me.
-- 
Francis Litterio
flitterio@gmail.com
774-573-9321 (mobile, preferred)
781-364-2105 (work)
508-883-5948 (home)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unresolved reference to "strcasecmp" building CVS Emacs on Windows with MS Visual Studio 6.0
  2006-08-04 16:42 Unresolved reference to "strcasecmp" building CVS Emacs on Windows with MS Visual Studio 6.0 Fran Litterio
@ 2006-08-04 17:23 ` Eli Zaretskii
  2006-08-05  2:02   ` Kenichi Handa
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2006-08-04 17:23 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Fri, 4 Aug 2006 12:42:31 -0400
> From: "Fran Litterio" <flitterio@gmail.com>
> 
> When I do "nmake bootstrap" to build the latest CVS Emacs on Windows
> XP with MS Visual Studio 6.0 installed, I get an unresolved reference
> to "strcasecmp" when linking temacs.exe. I had to apply the following
> patch to get a clean build:

Thanks.  I guess no one noticed this before because most of us use
MinGW, which does have strcasecmp in its library.

I fixed this in CVS slightly differently: by using stricmp in the
source.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unresolved reference to "strcasecmp" building CVS Emacs on Windows with MS Visual Studio 6.0
  2006-08-04 17:23 ` Eli Zaretskii
@ 2006-08-05  2:02   ` Kenichi Handa
  0 siblings, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2006-08-05  2:02 UTC (permalink / raw)
  Cc: flitterio, emacs-devel

In article <umzakl8jk.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

>> When I do "nmake bootstrap" to build the latest CVS Emacs on Windows
>> XP with MS Visual Studio 6.0 installed, I get an unresolved reference
>> to "strcasecmp" when linking temacs.exe. I had to apply the following
>> patch to get a clean build:

Oops.

> Thanks.  I guess no one noticed this before because most of us use
> MinGW, which does have strcasecmp in its library.

> I fixed this in CVS slightly differently: by using stricmp in the
> source.

Thank you for fixing my fault.

---
Kenichi Handa
handa@m17n.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-05  2:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 16:42 Unresolved reference to "strcasecmp" building CVS Emacs on Windows with MS Visual Studio 6.0 Fran Litterio
2006-08-04 17:23 ` Eli Zaretskii
2006-08-05  2:02   ` Kenichi Handa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.