Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: linking problems when compiling with g++ using boost MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-IsSubscribed: yes Content-Transfer-Encoding: 8bit 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/