delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/09/16:33:58

From: rdnews AT dahlsys DOT com (Roger Dahl)
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP and the Boost library?
Date: 9 Jan 2003 12:49:57 -0800
Organization: http://groups.google.com/
Lines: 44
Message-ID: <db3559c4.0301091249.352a0699@posting.google.com>
NNTP-Posting-Host: 160.33.98.117
X-Trace: posting.google.com 1042145397 27699 127.0.0.1 (9 Jan 2003 20:49:57 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 9 Jan 2003 20:49:57 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

Has anyone had any luck using the Boost library with DJGPP?

I'm trying to use the Regex++ part of the Boost library. The library
compiles without any problems, but I get linker errors when I try to
use it. Here's my test app:

#include <boost/regex.hpp>

int main() {
	boost::regex r("test");
	return 0;
}

When I try to link with the library, I get the following errors:

>gpp.exe -O2 -Wall -L/djgpp/boost_1_29_0/libs/regex/build/gcc
-lboost_regex -I/djgpp/boost_1_29_0 -o mapper.exe mapper.cpp

d:/tmp/cc8e650b.o(.text+0x2d):mapper.cpp: undefined reference to
`boost::reg_expression<char, boost::regex_traits<char>,
std::allocator<char> >::reg_expression[in-charge](char const*,
unsigned, std::allocator<char> const&)'

d:/tmp/cc8e650b.o(.text+0x35):mapper.cpp: undefined reference to
`boost::reg_expression<char, boost::regex_traits<char>,
std::allocator<char> >::~reg_expression [in-charge]()'

Listing the symbols in my test app with nm, I can find undefined
symbols like this one:
 
U boost::reg_expression<char,
boost::regex_traits<char>,std::allocator<char> >::~reg_expression()
 
Listing the symbols in the library, I can find the same symbols again,
but defined:
 
T boost::reg_expression<char,
boost::regex_traits<char>,std::allocator<char> >::~reg_expression()

Thanks for any help and suggestions.

Roger Dahl

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019