public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* windows
@ 1997-09-30  0:57 Mojo
  1997-09-30 12:44 ` windows Keresztfalvi Gábor 97b
  1997-09-30 15:51 ` windows J Russell Smyth
  0 siblings, 2 replies; 5+ messages in thread
From: Mojo @ 1997-09-30  0:57 UTC (permalink / raw)
  To: gnu-win32

hi! I've recently downloaded r18 but I came up with a problem with
MS windows programs, such as this tiny one:

#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,
                   HINSTANCE hPrevInstance,
                   LPSTR lpCmdLine, int nCmdShow)
{
        MessageBox(NULL,
          "TEST"
          "You can exit now", MB_OK|MB_ICONASTERISK);
        return(0);
}

First of all, I didn't know where to find the library with MessageBox().
After a grep, I find it in libglaux.a; ok, I linked it with the program.
It compiles ok, butwhen executing windowsasks me glaux.dll; I've tried
to build it, but itseems it doesn't work.
I need some help :)

.al
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: JNI functions under g++
@ 1998-10-28 22:22 Mumit Khan
  1998-10-29 18:12 ` Windows sdr
  0 siblings, 1 reply; 5+ messages in thread
From: Mumit Khan @ 1998-10-28 22:22 UTC (permalink / raw)
  To: JAMES DOYLE; +Cc: Gnu Win32 Mailing List

On Fri, 23 Oct 1998, JAMES DOYLE wrote:

> Hi,
> 	I've been using Gnu tools for years, but only 
> recently needed to use them under Win32.  The reason I wanted
> to try using the Win32 port is that I'm having mystifying problems
> under Microsoft Visual C++.  I've been able to use VC++ in the past
> to do JNI functions where I use malloc/free, but recently I've
> needed to access C++ libraries that use new/delete, and under VC++
> this is causing me problems.  Since things run fine on Solaris
> with g++, I figured I'd try g++ on Windows.

Fyi, with the latest changes I've submitted to cygwin, it's now possible
to build both C and C++ JNI DLLs with cygwin GCC. I only tried the most
trivial JNI DLLs, so let's see what more bugs are hiding. The test cases
did include memory allocation (both malloc and new families) and standard
I/O (both printf and iostreams).

I don't know if the changes will be accepted however (that depends on
the quality of the patch, and Geoffrey will have to decide if it's
ok).

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-10-31  8:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-30  0:57 windows Mojo
1997-09-30 12:44 ` windows Keresztfalvi Gábor 97b
1997-09-30 15:51 ` windows J Russell Smyth
1998-10-28 22:22 JNI functions under g++ Mumit Khan
1998-10-29 18:12 ` Windows sdr
1998-10-31  8:05   ` Windows Jan Tomasek

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).