Project

General

Profile

Actions

Bug #1281

closed

sdbm extension missing #include ruby.h

Added by cfis (Charlie Savage) about 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-12) [i386-mswin32_90]
Backport:
[ruby-core:22870]

Description

=begin
Compiling with VC2008, -W3, there are a number of undefined functions. Problem is that _sdbm.c does not include the ruby header file.

I'm not sure if it should be:

#include "ruby.h"

  • or -

#include

Different extensions do it different ways. I went with the first choice.

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/sdbm -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H=\"extconf.h\" -I. -I./.. -I./../missing -DLIBRUBY_SO=\"ruby19.dll\" -IC:\Development\msvc\include -Fo_sdbm.obj -c -Tc../.././../ext/sdbm/_sdbm.c _sdbm.c
../.././../ext/sdbm/_sdbm.c(201) : warning C4013: 'open' undefined; assuming extern returning int
../.././../ext/sdbm/_sdbm.c(222) : warning C4013: 'close' undefined; assuming extern returning int
../.././../ext/sdbm/_sdbm.c(268) : warning C4013: 'lseek' undefined; assuming extern returning int
../.././../ext/sdbm/_sdbm.c(269) : warning C4013: 'write' undefined; assuming extern returning int
../.././../ext/sdbm/_sdbm.c(443) : warning C4013: 'read' undefined; assuming extern returning int
=end


Files

sdbm.patch (353 Bytes) sdbm.patch cfis (Charlie Savage), 03/13/2009 05:09 PM
Actions #1

Updated by matz (Yukihiro Matsumoto) about 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23072.
=end

Actions

Also available in: Atom PDF