| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <6b99f6c60511050751v75763393p795d8fb2025dcaf@mail.gmail.com> |
| Date: | Sat, 5 Nov 2005 09:51:02 -0600 |
| From: | Cameron Wood <ckwood AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | linking problems when compiling with g++ using boost |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id jA5FpAVv005174 |
I have installed a vanilla install of cygwin which includes boost 1.33. I have a simple application which compiles and runs on another system fine. However using cygwin it complains about undefined references to all the boost objects and functions. I can see the exact functions/objects that its complaining about when I do an nm on the apparent missing boost library: 00000070 T boost::program_options::options_description::add_options() my compilation is: g++ -I/usr/include/boost-1_33 -L/usr/lib -lboost_program_options-gcc-mt-s -lboost_regex-gcc-mt-s getStats.C (the library is in fact in /usr/lib) with errors like: o:getStats.C:(.text+0x26b): undefined reference to `boost::program_options::options_description::add_options()' One thing I don't get are the different suffixes on the end of the boost libraries. Any help regarding this would greatly be appreciated! Thanks, Cameron -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |