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 To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: MSVC-dll under cygwin Date: Thu, 02 Dec 2004 13:06:57 -0800 Lines: 10 Message-ID: References: <000a01c4d883$eb5024f0$0200a8c0 AT mindcooler> <20041202153745 DOT GA29883 AT trixie DOT casa DOT cgf DOT cx> <001901c4d887$c873bfb0$0200a8c0 AT mindcooler> <002701c4d88f$3e12d100$0200a8c0 AT mindcooler> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: adsl-68-120-146-125.dsl.snfc21.pacbell.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041201 Thunderbird/1.0RC1 Mnenhy/0.6.0.104 In-Reply-To: <002701c4d88f$3e12d100$0200a8c0@mindcooler> X-IsSubscribed: yes Mikael Åsberg wrote: > HKEY create_registry_key(const HKEY parent_key, const std::string& name); You cannot mix Visual C++ ("real" C++, I mean, not C) and Gnu C++ modules in any way whatsoever. The two have completely different class and virtual-table layout algorithms. If you need to link a Gcc-compiled object to a VC++-compiled object, you can only use 'extern "C"' APIs (and C structures) to cross between the two. -- 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/