ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Прокопьев Евгений" <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: Компоновка с STL в gcc3
Date: Mon, 14 Apr 2003 16:52:46 +0400
Message-ID: <3E9AAF1E.1090007@rmts.donpac.ru> (raw)
In-Reply-To: <20030414161241.3308d630.vsu@altlinux.ru>

> А если при сборке вызывать тоже g++, а не gcc?

$ make clean
rm -f *.o requester
$ make
g++    -c -o requester.o requester.cpp
g++    -c -o serial.o serial.cpp
g++    -c -o sulim.o sulim.cpp
g++  -o requester requester.o serial.o sulim.o xmlconfig/XMLConfig.o 
-lstdc++ -lexpat
sulim.o: In function `std::basic_string<unsigned char, 
std::char_traits<unsigned char>, std::allocator<unsigned char> 
 >::find(unsigned char const*, unsigned) const':
sulim.o(.gnu.linkonce.t._ZNKSbIhSt11char_traitsIhESaIhEE4findEPKhj+0xd): 
undefined reference to `std::char_traits<unsigned char>::length(unsigned 
char const*)'
sulim.o: In function `std::basic_string<unsigned char, 
std::char_traits<unsigned char>, std::allocator<unsigned char> 
 >::find(unsigned char const*, unsigned, unsigned) const':
sulim.o(.gnu.linkonce.t._ZNKSbIhSt11char_traitsIhESaIhEE4findEPKhjj+0x4c): 
undefined reference to `std::char_traits<unsigned 
char>::compare(unsigned char const*, unsigned char const*, unsigned)'
sulim.o: In function `std::basic_string<unsigned char, 
std::char_traits<unsigned char>, std::allocator<unsigned char> 
 >::_Rep::_M_clone(std::allocator<unsigned char> const&, unsigned)':
sulim.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE4_Rep8_M_cloneERKS1_j+0xaa): 
undefined reference to `std::char_traits<unsigned char>::copy(unsigned 
char*, unsigned char const*, unsigned)'
sulim.o: In function `std::basic_string<unsigned char, 
std::char_traits<unsigned char>, std::allocator<unsigned char> 
 >::_M_mutate(unsigned, unsigned, unsigned)':
sulim.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE9_M_mutateEjjj+0x143): 
undefined reference to `std::char_traits<unsigned char>::copy(unsigned 
char*, unsigned char const*, unsigned)'
sulim.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE9_M_mutateEjjj+0x170): 
undefined reference to `std::char_traits<unsigned char>::copy(unsigned 
char*, unsigned char const*, unsigned)'
sulim.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE9_M_mutateEjjj+0x283): 
undefined reference to `std::char_traits<unsigned char>::move(unsigned 
char*, unsigned char const*, unsigned)'
sulim.o: In function `std::basic_string<unsigned char, 
std::char_traits<unsigned char>, std::allocator<unsigned char> 
 >::_S_copy_chars(unsigned char*, unsigned char const*, unsigned char 
const*)':
sulim.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE13_S_copy_charsEPhPKhS5_+0x1b): 
undefined reference to `std::char_traits<unsigned char>::copy(unsigned 
char*, unsigned char const*, unsigned)'
collect2: ld returned 1 exit status
make: *** [requester] Ошибка 1

-- 
С уважением, Прокопьев Евгений



  reply	other threads:[~2003-04-14 12:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14 10:41 [Comm] " Прокопьев Евгений
2003-04-14 12:12 ` [Comm] " Sergey Vlasov
2003-04-14 12:52   ` Прокопьев Евгений [this message]
2003-04-14 13:25     ` Sergey Vlasov
2003-04-15  4:13       ` Прокопьев Евгений
2003-04-15 11:42         ` Sergey Vlasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E9AAF1E.1090007@rmts.donpac.ru \
    --to=john@rmts.donpac.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git