Ticket #7243

cygwinでのコンパイル障害
Eröffnet am: 2005-10-08 10:40 Letztes Update: 2005-10-22 10:33

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
1 - Unterste
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

Details

JXTA-Cの使い方が良く分からず
こちらに流れてきました。
結局こちらもコンパイル後なに
をすれば良いか分からなくて
止まっていますが、cygwinで
コンパイルしたときに、以下の
ような問題が出ましたので、
一応報告します。
よろしくお願いいたします。

★./matchat-1.1a/error.cpp
#include <error.h>を
#include "error.h"に
しないと、コンパイルが通らない。
※これはおそらくシステム側に
 error.hがあって、<>の形式では
 そちらを先に参照するからと思われ
 ます。

★./matchat-1.1a/Makefile
 $(TARGET)が2つあるため、
 リンクされない。
 したがってexeファイルが作られない。

Ticket-Verlauf (2/2 Historien)

2005-10-08 10:47 Aktualisiert von: ando
Kommentar
Logged In: YES
user_id=4377

添付ファイルがうまく張り付かないので、
こちら側にdiffを書いておきます。

===================================================
Administrator@gomakityan /cygdrive/g/home/ando/src/jxta-c
$ diff -ur ./matchat-1.1a.org/ ./matchat-1.1a/
diff -ur ./matchat-1.1a.org/Makefile ./matchat-1.1a/Makefile
--- ./matchat-1.1a.org/Makefile 2004-05-17
09:14:34.000000000 +0900
+++ ./matchat-1.1a/Makefile 2005-10-08
10:36:22.000000000 +0900
@@ -46,12 +46,12 @@
#CFLAGS= -g -DSolaris -DEUC
##LDLIBS= -xildoff -lsocket -lnsl -lgen -lpthread

+all: $(TARGET)

-
-$(TARGET):
+$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS)
$(LDLIBS)

-$(TARGET): $(OBJS)
+#$(TARGET): $(OBJS)

.cpp.o:
$(CC) $(CFLAGS) -c -o $@ $<
Only in ./matchat-1.1a/: cache
diff -ur ./matchat-1.1a.org/error.cpp ./matchat-1.1a/error.cpp
--- ./matchat-1.1a.org/error.cpp 2004-05-03
09:33:22.000000000 +0900
+++ ./matchat-1.1a/error.cpp 2005-10-08
10:31:46.000000000 +0900
@@ -3,7 +3,7 @@
/* Programed by Y.Matsumoto IPLAB.NAIST.2002 */
/********************************************************/
#include <stdio.h>
-#include <error.h>
+#include "error.h"
void errout(int no, int ret, char *msg){
#ifdef MSG
fprintf(stderr,"errno=%d ret=%d: %s\n",no, ret, msg);

Administrator@gomakityan /cygdrive/g/home/ando/src/jxta-c
$
2005-10-22 10:33 Aktualisiert von: ando
  • Priorität Update from 5 - Mittel to 1 - Unterste

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden