delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/26/06:58:23

From: weo AT recco DOT de (Wolfgang Ocker)
Subject: Program runs on Win95 but not NT!
26 Sep 1997 06:58:23 -0700 :
Message-ID: <9709261507.ZM27970.cygnus.gnu-win32@recco.de>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Greetings!

I need your help! I'm new to NT programming (and *love* to have the
gnuwin32 system running as a cross compiler on my linux box), so please
excuse if it's a dumb question ...

I've the following problem:

A simple windows (GUI) application compiles just fine. It runs under
Windows95! It doesn't run under NT (sp3). The system even doesn't start
the program, but displays the error ERROR_BAD_EXE_FORMAT.

The program is linked with

        $(CC) -mwindows -o simple.exe $(OBJS)

and only the warning

	warning: cannot find entry symbol _WinMainCRTStartup;
		 defaulting to 00401000

is displayed (btw: how can this be avoided?)

I've also compiled the program under NT with the self-hosted gnuwin32
tools. Same result (it doesn't work). It works if the sources are
compiled and linked with Lcc or MSVC.

If I link the object files as generated with gnuwin32 with the MSVC
linker, the program runs! Looks like I'm missing some options for the
linker!?

Any ideas?

Wolfgang
--
 | Wolfgang Ocker    | D-86576 Schiltberg-Rapperzell | weo AT recco DOT de         |
 | reccoware systems | Phone +49-8259-1048, Fax 1049 | How do we sleep ...? |
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019