From: Ricardo Santos Pereira <arsoftware25@gmail.com>
To: cygwin@cygwin.com
Subject: About DLL compilation problem
Date: Fri, 3 Sep 2021 13:10:59 -0300 [thread overview]
Message-ID: <CAGc1aY-oHMoGc8B9DJVBc8RcxfWPv4g5tYB1foAcYN5PTEXr6A@mail.gmail.com> (raw)
Hi Corina
just figured out that a .def file in a dll may export function from a dll
that is referenced in the compilation stage like this:
gcc file.c external.dll def.def -o out.dll
if in the def.def it has a function that is in the file.c and also
available in external.dll it may generate an invalid out.dll
I don't know but this looks like a problem in gcc that need to be fixed,
spend one hour modifying my function in file.c and it was linking with
external.dll
then I commented the function inside file.c and saw the compilation stage
finished without a link error
if it is a GCC feature then a warning about expernal DLL linkage could help
a lot when the function exported is inside an external DLL
hope to have explained it in an easy way
Ricardo
reply other threads:[~2021-09-03 16:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAGc1aY-oHMoGc8B9DJVBc8RcxfWPv4g5tYB1foAcYN5PTEXr6A@mail.gmail.com \
--to=arsoftware25@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).