[#8530] Enumerable and rand — Koretsugu Daigoro <tmmcross@...>

これつぐです。

21 messages 1999/12/05
[#8534] Re: Enumerable and rand — matz@... (Yukihiro Matsumoto) 1999/12/06

まつもと ゆきひろです

[#8581] Re: [ruby-list:19228] Ruby 1.4.3 — Katsuyuki Komatsu <komatsu@...>

小松です。

19 messages 1999/12/07
[#8592] Re: [ruby-list:19228] Ruby 1.4.3 — matz@... (Yukihiro Matsumoto) 1999/12/07

まつもと ゆきひろです

[#8645] urllib and httplib — TAKAHASHI Masayoshi <maki@...>

高橋征義です。

47 messages 1999/12/14
[#8646] Re: urllib and httplib — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/12/14

なひです.

[#8653] Re: urllib and httplib — matz@... (Yukihiro Matsumoto) 1999/12/14

まつもと ゆきひろです

[#8656] Re: urllib and httplib — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/12/15

なひです.

[#8659] Re: urllib and httplib — Wakou Aoyama <wakou@...> 1999/12/15

青山です。

[#8685] Re: urllib and httplib — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/12/21

なひです.

[#8687] Re: urllib and httplib — TAKAHASHI Masayoshi <maki@...> 1999/12/21

高橋征義です。

[#8690] Re: urllib and httplib — matz@... (Yukihiro Matsumoto) 1999/12/21

まつもと ゆきひろです

[#8717] Re: urllib and httplib — TAKAHASHI Masayoshi <maki@...> 1999/12/24

高橋征義です。

[#8963] Re: urllib and httplib — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/01/19

なひです.

[#8650] [PATCH] Ruby/Tk — Koji Arai <JCA02266@...>

新井です。

20 messages 1999/12/14
[#8651] Re: [PATCH] Ruby/Tk — Koji Arai <JCA02266@...> 1999/12/14

新井です。

[#8692] [win] dir name — KANEKO Naoshi <wbs01621@...>

金子です。

22 messages 1999/12/21
[#8695] Re: [win] dir name — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/12/22

小田@QNES です。

[#8741] Re: [ruby-list:19945] Re: array + empty string — Wakou Aoyama <wakou@...>

青山です。

18 messages 1999/12/27
[#8743] Re: [ruby-list:19945] Re: array + empty string — matz@... (Yukihiro Matsumoto) 1999/12/28

まつもと ゆきひろです

[#8742] [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Kazunori NISHI <kazunori@...>

西@九大です。

64 messages 1999/12/27
[#8744] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — matz@... (Yukihiro Matsumoto) 1999/12/28

まつもと ゆきひろです

[#8748] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Kazunori NISHI <kazunori@...> 1999/12/28

西@九大です。

[#8751] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — matz@... (Yukihiro Matsumoto) 1999/12/28

まつもと ゆきひろです

[#8767] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Kazunori NISHI <kazunori@...> 1999/12/29

西@九大です。

[#8777] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — matz@... (Yukihiro Matsumoto) 1999/12/30

まつもと ゆきひろです

[#8791] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Minero Aoki <aamine@...> 1999/12/31

あおきです。

[#8792] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — matz@... (Yukihiro Matsumoto) 1999/12/31

まつもと ゆきひろです

[#8793] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — ARIMA Yasuhiro <fit0298@...> 1999/12/31

有馬です。

[#8795] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Akinori MUSHA aka knu <knu@...> 1999/12/31

 knuです。

[#8798] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — matz@... (Yukihiro Matsumoto) 2000/01/01

まつもと ゆきひろです

[#8811] Re: [REQ] Array#each{|a,b,...|}, Array#shift/pop(num) — Akinori MUSHA aka knu <knu@...> 2000/01/03

 knuです。

[ruby-dev:8760] Re: [win] dir name

From: Katsuyuki Komatsu <komatsu@...>
Date: 1999-12-29 03:56:38 UTC
List: ruby-dev #8760
小松です。

In the message of [ruby-dev:8714] Re: [win] dir name
    on 1999/12/24 14:14:04 Koji Oda <oda@bsd1.qnes.nec.co.jp> wrote:
|マニュアルによると.cpp と .cxx はC++ ソースと見なされます。
|コンパイルオプションによって、明示的に指定することもできます。
|(/Tc,/Tp,/TC,/TPオプション)
|# .cxx で失敗した記憶があるんですが...

今は大丈夫みたい。VC6.0 + SP3です。

==============================================================
C:\lang\ruby>type t.cxx
#include <stdio.h>

int main()
{
#if defined __cplusplus
    printf("__cplusplus is defined\n");
#else
    printf("__cplusplus is not defined\n");
#endif
    return 0;
}

C:\lang\ruby>cl -nologo t.cxx
t.cxx

C:\lang\ruby>t
__cplusplus is defined

C:\lang\ruby>cl -nologo -TC t.cxx
t.cxx

C:\lang\ruby>t
__cplusplus is not defined

C:\lang\ruby>
==============================================================

ところで.cppを使った場合、create_makefile()で生成されたMakefile
ではフラグがコンパイラにわたりません。

==============================================================
C:\lang\ruby\x>type extconf.rb
require 'mkmf'
create_makefile("x")

C:\lang\ruby\x>type x.cpp
extern "C" {
#include "ruby.h"
}
void Init_x() {}

C:\lang\ruby\x>ruby extconf.rb
creating Makefile

C:\lang\ruby\x>nmake -nologo
        cl  /c x.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

x.cpp
x.cpp(2) : fatal error C1083: インクルード ファイルがオープンできません。'ruby.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : リターン コード '0x2'
Stop.

C:\lang\ruby\x>
==============================================================

生成されたMakefileに
    CPPFLAGS = $(CFLAGS)
とか足してやれば通ります……が、CPPFLAGSは一般的にはプリプロセッサの
cpp用のフラグな気が。

nmakeは.cxxに対してはCXXFLAGSを使い.cppに対してはCPPFLAGSを使うという
ルールになっているので、.cxxを使用した場合は、
    CXXFLAGS = $(CFLAGS)
があるので動きます。

lib/mkmf.rbでmswin32ならCPPFLAGSを足すとかにした方がよいかも。

あと、SunOSとかSolarisのmakeでは、フラグはCCFLAGS (拡張子はcc)
なんですよね。これも対応したほうがいいのかなあ?

それから、C++FLAGSをつかっているのをみたことがあるんですが、
どこだったっけ?

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread