From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: Linking a native msvc dll library to CYGWIN g++ compiler
Date: Mon, 17 Jul 2023 01:04:34 -0700 [thread overview]
Message-ID: <09c5fa63-57cc-6184-2acd-d281aa2f744c@maxrnd.com> (raw)
In-Reply-To: <CAPxKPA7V1y9rKtHeE_+fSHZn0+R83K58jSP9qGxmFf1e9diiyA@mail.gmail.com>
Mümin A. via Cygwin wrote:
> Hi,
>
> reminder..
>
> Mümin A. <muminaydin06@gmail.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
prev parent reply other threads:[~2023-07-17 8:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-11 6:47 Mümin A.
2023-07-12 6:24 ` Csaba Ráduly
2023-07-17 6:58 ` Mümin A.
2023-07-17 8:04 ` Mark Geisert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09c5fa63-57cc-6184-2acd-d281aa2f744c@maxrnd.com \
--to=mark@maxrnd.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).