delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/07/17/04:04:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33F5D385802F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1689581097;
bh=ucG4y1/6dVmv6DIBxaarBTUDXWgH3B3eIOKaErUXQvE=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=IAGtoNPj2gpuPco7cxJe1s2ETbi57CBL9CRPj/gyE8Z4qB5mQ380+lyuy+gbi97zv
/a+xMfCrM953W7MlUkYO42ZZ6+Z1HQ4jRmQBiDgvn9wGv6kaUWH/cK4oGHfD827WbM
VUfZ3gzvoa+uc8L+yBDGJ4bdZ8LCidNXVonMmpyA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA45B3858D1E
Subject: Re: Linking a native msvc dll library to CYGWIN g++ compiler
To: cygwin AT cygwin DOT com
References: <CAPxKPA4KfwWUa4pgEBuN=3ZDTYLP2QNGNo39nKhUtXFF_zGQ2A AT mail DOT gmail DOT com>
<CAPxKPA7V1y9rKtHeE_+fSHZn0+R83K58jSP9qGxmFf1e9diiyA AT mail DOT gmail DOT com>
Message-ID: <09c5fa63-57cc-6184-2acd-d281aa2f744c@maxrnd.com>
Date: Mon, 17 Jul 2023 01:04:34 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <CAPxKPA7V1y9rKtHeE_+fSHZn0+R83K58jSP9qGxmFf1e9diiyA@mail.gmail.com>
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 36H84vCH009389

Mümin A. via Cygwin wrote:
> Hi,
> 
> reminder..
> 
> Mümin A. <muminaydin06 AT gmail DOT com>, 11 Tem 2023 Sal, 09:47 tarihinde şunu
> yazdı:
> 
>>
>> Hi,
>>
>> I'm facing a problem while linking my native dll library into the g++
>> compiler.
>>
>> There is a name mangling problem when calling a msvc function from g++
>> compiler therefore linker gives an error undefined reference.
>>
>> Is there any method to directly link and call a function from native dll
>> library from the cygwin compiler ?
>>
>>
>>
>> For example, I've a fooCls.h header file for a windows library,  I add
>> link the fooCls.dll to g++ compiler then,
>>
>> fooNameSpace::fooConnectionCls instance;
>> instance.FooTest();
>>
>> gives a linker error , undefined reference.
>>
>>
>> Thank you in advance,
>> Mumin AYDI

Did you see Csaba's reply to your initial email?  Check the mail archives.
Does FAQ 6.36 describe your situation?

See the Cygwin home page https://cygwin.com for pointers to those resources.

..mark

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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