delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/09/11:04:31

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
Date: Wed, 9 Nov 2005 17:04:08 +0100
From: Thomas Porschberg <thomas DOT porschberg AT osp-dd DOT de>
To: cygwin AT cygwin DOT com
Subject: boost program_options library with cygwin
Message-ID: <20051109160408.GB5162@porschberg.osp-dd.de>
Mail-Followup-To: cygwin AT cygwin DOT com
Mime-Version: 1.0
X-Operating-System: Linux porschberg 2.6.11.4-20a-default
User-Agent: Mutt/1.5.10i

Hi,
I have a problem when using the boost::program::options library
under cygwin in conjunction with building a application which
I compile with the "-mno-cygwin -mwindows" options.

I get a "undefined reference error to _environ" at link time.
I guess the problem arised because boost libraries (version 1.33)
was built as an cygwin application and I want build a pure windows
application with this library.
On the other hand I already linked another boost library (boost::filesystem)
against my application and got no error ?!

I now built the boost libraries under mingw by myself and got a 
boost_program_options-gcc-1_33.dll and boost_program_options-gcc-mt-1_33.lib.
I replaced the cygwin libboost_program_options-gcc-mt-s.a with my
boost_program_options-gcc-mt-1_33.lib (renamed boost_program_options-gcc-mt-1_33.lib
to libboost_program_options-gcc-mt-s.a), copied the dll to C:\WINDOWS\system32
and it worked !

This is of course nice but can someone give an explanation ?

Thomas


-- 


--
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/

- Raw text -


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