gcc
8 отговора
486 прегледа
Re: gcc
ami napr. edno mnogo prosto ezbounce ne moje da se kompilira. Versiqta na linuxa e Slackware 8.0 i e s defaultskoto gcc. Btw probwal sym i na RH 7.2 i na Mandrake 8/8.1 -> syshtiq problem. Taka stawa i s dosta drugi programi, no w momenta samo ezbounce-a mi e w glawata.
Re: gcc
A na bas che stava " cannot compile with multiple options -o -S ... |" :)))))
WWell BE COOL
HITMAN
WWell BE COOL
HITMAN
Re: gcc
root@ns:~/source/root/ezbounce-0.99.11# make
cd src; make all
make[1]: Entering directory `/root/source/root/ezbounce-0.99.11/src'
cd ../lib/ ; make all
make[2]: Entering directory `/root/source/root/ezbounce-0.99.11/lib'
c++ -Wall -fno-exceptions -fno-rtti -O2 -o general.o -c general.cpp
general.cpp: In function `const char * timestamp(bool = 0)':
general.cpp:147: implicit declaration of function `int time(...)'
general.cpp:152: implicit declaration of function `int localtime(...)'
general.cpp:152: assignment to `tm *' from `int' lacks a cast
general.cpp:153: invalid use of undefined type `struct tm'
general.cpp:151: forward declaration of `struct tm'
general.cpp:153: invalid use of undefined type `struct tm'
general.cpp:151: forward declaration of `struct tm'
general.cpp:156: implicit declaration of function `int ctime(...)'
general.cpp:156: passing `int' to argument 2 of `safe_strcpy(char *, const char *, long unsigned int)' lacks a cast
make[2]: *** [general.o] Error 1
make[2]: Leaving directory `/root/source/root/ezbounce-0.99.11/lib'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/root/source/root/ezbounce-0.99.11/src'
make: *** [ezbounce_src] Error 2
root@ns:~/source/root/ezbounce-0.99.11#
cd src; make all
make[1]: Entering directory `/root/source/root/ezbounce-0.99.11/src'
cd ../lib/ ; make all
make[2]: Entering directory `/root/source/root/ezbounce-0.99.11/lib'
c++ -Wall -fno-exceptions -fno-rtti -O2 -o general.o -c general.cpp
general.cpp: In function `const char * timestamp(bool = 0)':
general.cpp:147: implicit declaration of function `int time(...)'
general.cpp:152: implicit declaration of function `int localtime(...)'
general.cpp:152: assignment to `tm *' from `int' lacks a cast
general.cpp:153: invalid use of undefined type `struct tm'
general.cpp:151: forward declaration of `struct tm'
general.cpp:153: invalid use of undefined type `struct tm'
general.cpp:151: forward declaration of `struct tm'
general.cpp:156: implicit declaration of function `int ctime(...)'
general.cpp:156: passing `int' to argument 2 of `safe_strcpy(char *, const char *, long unsigned int)' lacks a cast
make[2]: *** [general.o] Error 1
make[2]: Leaving directory `/root/source/root/ezbounce-0.99.11/lib'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/root/source/root/ezbounce-0.99.11/src'
make: *** [ezbounce_src] Error 2
root@ns:~/source/root/ezbounce-0.99.11#
Re: gcc
Towa mi prili^a na gre[ka w general.cpp.
Wizh tam ima li #include <time.h>
Sy]ite sorsowe kompilirat li se s drugo gcc?
Wizh tam ima li #include <time.h>
Sy]ite sorsowe kompilirat li se s drugo gcc?
Re: gcc
zna4i tazi greshka se polu4awa samo pri nowite distribucii kato slackware 8, redhat 7/7.1/7.2 , mandrake 8.0/8.1 i etc. Pri compilirane na po-stari distribucii nqma takyw problem, napr. slackware 7.1 go compile-wa bez problemi.
Primera koito sym dal e ot slackware 8. 1vo probwah da si compiliram source-a s default-skoto gcc, no bez uspeh. Syshtoto se polu4i kogato smenih, t.e. update-nah gcc s po-starata version ot slackware 7.1, taka 4e sym probwal i towa. Nqkoi ima li ideq zashto e taka i kak moje da se oprawi?
Primera koito sym dal e ot slackware 8. 1vo probwah da si compiliram source-a s default-skoto gcc, no bez uspeh. Syshtoto se polu4i kogato smenih, t.e. update-nah gcc s po-starata version ot slackware 7.1, taka 4e sym probwal i towa. Nqkoi ima li ideq zashto e taka i kak moje da se oprawi?
Re: gcc
V momenta nqmam vreme da testvam:(
Problema e che se declarirat funkcii sus sushtite imena kakto v time.h no ot razlichen tip! Primerno int time() v time.h e tm* time().
Opitai da namerish dali nqkude se includva time.h (#include <time.h>) i go razkarai!
Problema e che se declarirat funkcii sus sushtite imena kakto v time.h no ot razlichen tip! Primerno int time() v time.h e tm* time().
Opitai da namerish dali nqkude se includva time.h (#include <time.h>) i go razkarai!