public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Daniel Walter <d2walter@hotmail.com>
Cc: java@gcc.gnu.org
Subject: Re: creating shared dlls yields undefined reference to `WinMain@16'  in mingw 4.3
Date: Tue, 16 Dec 2008 20:26:00 -0000	[thread overview]
Message-ID: <49480EDD.5060401@redhat.com> (raw)
In-Reply-To: <BLU138-DAV5C8366A9DE7DE22A0BDE780F50@phx.gbl>

Daniel Walter wrote:

> 
>> Daniel Walter wrote:
>>> It appears that libmingw.a is causing the problem, though this library
>>> can be linked to form a dll as long as no gcj object files are linked as
>>> well. Below are the results of the attempts to link with 'g++ -v' first
>>> with gcj objects which failed and the second time with only g++ objects.
>>
>> So, which object file in libmingw.a contains the undefined reference to
>> `WinMain@16'  And what dependency is causing it to be pulled in?

> I tried adding -Wl,-y,_WinMain@16 so that I could find out where this
> reference was missing.  The result was main.o - this was also in the
> previous output.

OK, so there's a file called main.o that for some reason is pulled in when
linking.  I have no idea; I think we need mingw32 experts.

Andrew.

  reply	other threads:[~2008-12-16 20:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16  5:54 Daniel Walter
2008-12-16 10:39 ` Andrew Haley
2008-12-16 16:31   ` Daniel Walter
2008-12-16 17:30     ` Andrew Haley
2008-12-16 20:11       ` Daniel Walter
2008-12-16 20:26         ` Andrew Haley [this message]
2008-12-16 20:55           ` Daniel Walter
2008-12-17  7:47 Danny Smith
2008-12-17 10:35 ` Andrew Haley
2008-12-17 18:45   ` Daniel Walter
2008-12-17 18:56     ` Andrew Haley
2008-12-18  4:12 Daniel Walter
2008-12-18 10:17 ` Andrew Haley
2008-12-18 11:42   ` BGB
2008-12-18 17:03   ` Daniel Walter
2008-12-19  5:44     ` BGB
     [not found]       ` <BLU138-DAV5CF88D886B9DC7B21FB2F80F00@phx.gbl>
2008-12-19 20:07         ` BGB

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=49480EDD.5060401@redhat.com \
    --to=aph@redhat.com \
    --cc=d2walter@hotmail.com \
    --cc=java@gcc.gnu.org \
    /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).