Article View: be.comp.programming
Article #8739Re: linux c++ auto wil niet starten :)
From: gert
Date: Thu, 13 Jun 2002 17:24
Date: Thu, 13 Jun 2002 17:24
229 lines
12514 bytes
12514 bytes
Bart.Vanhauwaert@nowhere.be wrote: > Deze lege plaatsen _MOETEN_ een tab zijn. Spaties is _niet_ goed! > > cu bart > thx zit al een stapje verder :) maar nu krijg ik dit in de plaats. Dit werkt ----------- gert@linux:~/Desktop/auto> c++ -o auto auto.cpp interface.cpp motor.cpp gert@linux:~/Desktop/auto> Dit werkt niet --------------- gert@linux:~/Desktop/auto> make gcc -o auto auto.o interface.o motor.o auto.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::copy(char *, unsigned int, unsigned int) const': auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.copy(char *, unsigned int, unsigned int) const+0x2c): undefined reference to `__out_of_range(char const *)' auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.copy(char *, unsigned int, unsigned int) const+0x85): undefined reference to `string_char_traits<char>::copy(char *, char const *, unsigned int)' auto.o: In function `__malloc_alloc_template<0>::_S_oom_malloc(unsigned int)': auto.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x1a): undefined reference to `endl(ostream &)' auto.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x27): undefined reference to `cerr' auto.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x2c): undefined reference to `ostream::operator<<(char const *)' auto.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x37): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' auto.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::copy(unsigned int, char const *, unsigned int)': auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::gnu.linkonce.t.copy(unsigned int, char const *, unsigned int)+0x33): undefined reference to `string_char_traits<char>::copy(char *, char const *, unsigned int)' auto.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::move(unsigned int, char const *, unsigned int)': auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::gnu.linkonce.t.move(unsigned int, char const *, unsigned int)+0x33): undefined reference to `string_char_traits<char>::move(char *, char const *, unsigned int)' auto.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)': auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x31): undefined reference to `__out_of_range(char const *)' auto.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x8e): undefined reference to `__length_error(char const *)' interface.o: In function `interface(void)': interface.o(.text+0xf): undefined reference to `cout' interface.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)' interface.o(.text+0x23): undefined reference to `cin' interface.o(.text+0x28): undefined reference to `istream::operator>>(char &)' interface.o(.text+0x33): undefined reference to `endl(ostream &)' interface.o(.text+0x4e): undefined reference to `cout' interface.o(.text+0x53): undefined reference to `ostream::operator<<(char const *)' interface.o(.text+0x5e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' interface.o(.text+0x79): undefined reference to `cout' interface.o(.text+0x7e): undefined reference to `ostream::operator<<(char const *)' interface.o(.text+0x8d): undefined reference to `cin' interface.o(.text+0x92): undefined reference to `istream::operator>>(int &)' interface.o(.text+0x9d): undefined reference to `endl(ostream &)' interface.o(.text+0xbc): undefined reference to `cout' interface.o(.text+0xcc): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' interface.o(.text+0xfa): undefined reference to `cout' interface.o(.text+0xff): undefined reference to `ostream::operator<<(char const *)' interface.o(.text+0x10e): undefined reference to `cin' interface.o(.text+0x113): undefined reference to `istream::operator>>(char &)' interface.o(.text+0x124): undefined reference to `endl(ostream &)' interface.o(.text+0x13f): undefined reference to `cout' interface.o(.text+0x144): undefined reference to `ostream::operator<<(char const *)' interface.o(.text+0x14f): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' interface.o: In function `ostream & operator<<<char, string_char_traits<char>, __default_alloc_template<true, 0> >(ostream &, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &)': interface.o(.gnu.linkonce.t.__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0_R7ostreamRCt12basic_string3ZX01ZX11ZX21_R7ostream+0x32): undefined reference to `ostream::write(char const *, int)' motor.o: In function `gas(int)': motor.o(.text+0x89): undefined reference to `ostream::operator<<(char const *)' motor.o(.text+0x94): undefined reference to `ostream::operator<<(int)' motor.o(.rodata+0x74): undefined reference to `ostream type_info node' motor.o: In function `ostringstream::~ostringstream(void)': motor.o(.gnu.linkonce.t._._13ostringstream+0x48): undefined reference to `ios::~ios(void)' motor.o: In function `ostringstream::ostringstream(int, int)': motor.o(.ostringstream::gnu.linkonce.t.(int, int)+0x2d): undefined reference to `ios::ios(streambuf *, ostream *)' motor.o(.ostringstream::gnu.linkonce.t.(int, int)+0x3e): undefined reference to `ostream::ostream(int, streambuf *, ostream *)' motor.o(.ostringstream::gnu.linkonce.t.(int, int)+0xc0): undefined reference to `ios::~ios(void)' motor.o: In function `ostringstream type_info function': motor.o(.gnu.linkonce.t.__tf13ostringstream+0x10): undefined reference to `ostream type_info function' motor.o: In function `ostream::~ostream(void)': motor.o(.gnu.linkonce.t._._7ostream+0x13): undefined reference to `ostream::ios virtual table' motor.o(.gnu.linkonce.t._._7ostream+0x29): undefined reference to `ios::~ios(void)' motor.o: In function `stringbuf::stringbuf(int)': motor.o(.stringbuf::gnu.linkonce.t.(int)+0x15): undefined reference to `streambuf::streambuf(int)' motor.o(.stringbuf::gnu.linkonce.t.(int)+0x67): undefined reference to `streambuf::~streambuf(void)' motor.o: In function `stringbuf::~stringbuf(void)': motor.o(.gnu.linkonce.t._._9stringbuf+0x3b): undefined reference to `streambuf::~streambuf(void)' motor.o: In function `stringbuf::str(void) const': motor.o(.stringbuf::gnu.linkonce.t.str(void) const+0x14): undefined reference to `streambuf::pbase(void) const' motor.o(.stringbuf::gnu.linkonce.t.str(void) const+0x29): undefined reference to `streambuf::pptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.str(void) const+0x37): undefined reference to `streambuf::pbase(void) const' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x14): undefined reference to `streambuf::uflow(void)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x18): undefined reference to `streambuf::pbackfail(int)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x1c): undefined reference to `streambuf::xsputn(char const *, int)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x20): undefined reference to `streambuf::xsgetn(char *, int)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x30): undefined reference to `streambuf::sync(void)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x34): undefined reference to `streambuf::doallocate(void)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x38): undefined reference to `streambuf::sys_read(char *, int)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x3c): undefined reference to `streambuf::sys_write(char const *, int)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x40): undefined reference to `streambuf::sys_seek(long long, ios::seek_dir)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x44): undefined reference to `streambuf::sys_close(void)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x48): undefined reference to `streambuf::sys_stat(void *)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x4c): undefined reference to `streambuf::showmanyc(void)' motor.o(.gnu.linkonce.d.__vt_9stringbuf+0x50): undefined reference to `streambuf::imbue(void *)' motor.o: In function `stringbuf type_info function': motor.o(.gnu.linkonce.t.__tf9stringbuf+0x10): undefined reference to `streambuf type_info function' motor.o(.gnu.linkonce.t.__tf9stringbuf+0x1a): undefined reference to `streambuf type_info node' motor.o: In function `stringbuf::overflow(int)': motor.o(.stringbuf::gnu.linkonce.t.overflow(int)+0x97): undefined reference to `streambuf::pptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.overflow(int)+0xa6): undefined reference to `streambuf::pbase(void) const' motor.o(.stringbuf::gnu.linkonce.t.overflow(int)+0xba): undefined reference to `streambuf::gptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.overflow(int)+0xc9): undefined reference to `streambuf::eback(void) const' motor.o(.stringbuf::gnu.linkonce.t.overflow(int)+0xe7): undefined reference to `streambuf::sputc(int)' motor.o: In function `stringbuf::seekoff(long long, ios::seek_dir, int)': motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0xf0): undefined reference to `streambuf::gptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0x101): undefined reference to `streambuf::egptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0x118): undefined reference to `streambuf::pptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0x129): undefined reference to `streambuf::epptr(void) const' motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0x1da): undefined reference to `streambuf::gbump(int)' motor.o(.stringbuf::gnu.linkonce.t.seekoff(long long, ios::seek_dir, int)+0x235): undefined reference to `streambuf::pbump(int)' motor.o: In function `stringbuf::stringbuf_sync(int, int)': motor.o(.stringbuf::gnu.linkonce.t.stringbuf_sync(int, int)+0x40): undefined reference to `streambuf::setg(char *, char *, char *)' motor.o(.stringbuf::gnu.linkonce.t.stringbuf_sync(int, int)+0x6f): undefined reference to `streambuf::setp(char *, char *)' motor.o(.stringbuf::gnu.linkonce.t.stringbuf_sync(int, int)+0x7c): undefined reference to `streambuf::pbump(int)' collect2: ld returned 1 exit status make: *** [all] Error 1 gert@linux:~/Desktop/auto> Makefile -------- CC = gcc all: auto.o interface.o motor.o $(CC) -o auto auto.o interface.o motor.o auto.o: auto.cpp interface.h $(CC) -c auto.cpp interface.o: interface.cpp motor.h $(CC) -c interface.cpp motor.o: motor.cpp $(CC) -c motor.cpp #clean: # rm -f *.o auto Groetjes Your c++ buddy
Technical Details
Message-ID:
<3D08D53E.10605@easynet.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!supernews.com!feed.textport.net!newsranger.com!news-out.visi.com!hermes.visi.com!skynet.be!skynet.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mailReferences:
<3D04E1A2.1040508@easynet.be> <9N8N8.26036$ud.3504@afrodite.telenet-ops.be> <3D07EA0C.5000900@easynet.be> <dqo9ea.dnv.ln@ns1.irule.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,c850a5934c174449 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-06-13 10:24:11 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!supernews.com!feed.textport.net!newsranger.com!news-out.visi.com!hermes.visi.com!skynet.be!skynet.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail Message-ID: <3D08D53E.10605@easynet.be> Date: Thu, 13 Jun 2002 19:24:14 +0200 From: gert <gert@easynet.be> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: be.comp.programming Subject: Re: linux c++ auto wil niet starten :) References: <3D04E1A2.1040508@easynet.be> <9N8N8.26036$ud.3504@afrodite.telenet-ops.be> <3D07EA0C.5000900@easynet.be> <dqo9ea.dnv.ln@ns1.irule.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 231 Organization: [ posted via Easynet Belgium ] NNTP-Posting-Host: 213.193.183.40 X-Trace: 1023989049 3767 213.193.183.40 X-Complaints-To: abuse@be.easynet.net