public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Mümin A." <muminaydin06@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Linking a native msvc dll library to CYGWIN g++ compiler
Date: Mon, 17 Jul 2023 09:58:35 +0300	[thread overview]
Message-ID: <CAPxKPA7V1y9rKtHeE_+fSHZn0+R83K58jSP9qGxmFf1e9diiyA@mail.gmail.com> (raw)
In-Reply-To: <CAPxKPA4KfwWUa4pgEBuN=3ZDTYLP2QNGNo39nKhUtXFF_zGQ2A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

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

  parent reply	other threads:[~2023-07-17  6:58 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. [this message]
2023-07-17  8:04   ` Mark Geisert

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=CAPxKPA7V1y9rKtHeE_+fSHZn0+R83K58jSP9qGxmFf1e9diiyA@mail.gmail.com \
    --to=muminaydin06@gmail.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).