From: Appak Han (appak_han@hotmail.com)
Date: Wed 23 Oct 2002 - 20:02:52 EEST
Selamlar,
egcs derleyicisi kullanarak elimde bulunan C dosyasini derlerken stream.h
ve fstream.h dosyalarini bulamiyor.
Bu kutuphanelerin yerlerini gostererek nasil derleyebilirim.
Makefile asagidaki gibidir.
HFILES1 = glob.h dist.h
HFILES2 = gen.h
CFILES1 = ran1.c expdev.c gammln.c gasdev.c poidev.c dist.c
CFILES2 = gen.c main.c command.c
OBJECTS1 = ran1.o expdev.o gammln.o gasdev.o poidev.o dist.o
OBJECTS2 = gen.o main.o command.o
LIBES = -lm
CC = egcs
CFLAGS = -+ -O
gen: $(OBJECTS1) $(OBJECTS2)
$(CC) $(CFLAGS) $(OBJECTS1) $(OBJECTS2) $(LIBES) -o gen
test: $(OBJECTS1) test.o
$(CC) $(CFLAGS) $(OBJECTS1) test.o $(LIBES) -o test
clean:
/bin/rm $(OBJECTS1) $(OBJECTS2)
$(OBJECTS1): $(HFILES1)
$(OBJECTS2): $(HFILES1) $(HFILES2)
==============================================
" CFLAGS = -+ -O " buradaki -+ opsiyonu ne ise yariyor. Bununla ilgili
bir hata veriyor.
===============================================
egcs ile derslerken asagidaki hatayi veriyor....
egcs -+ -O -S -c -o ran1.o ran1.c
egcs: unrecognized option `-+'
In file included from ran1.c:1:
.....
.....
---------------------
Yardimci olursaniz sevinirim.
NOt: Bu dosyalar /usr/include/* altinda. Fakat bunlarin yerini gostererek
egcs ve gcc ile derleyemiyorum. kutuphane dosyasi bulunamadi hatasi veriyor.
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp