delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/07/03:01:12

From: root AT jacob DOT remcomp DOT fr (root)
Subject: Re: MSVC linker
7 Jul 1997 03:01:12 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <m0wl9aJ-000AK5C.cygnus.gnu-win32@jacob.remcomp.fr>
Original-To: pjm AT rbd DOT com (Paul J. Metzger)
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <Pine.LNX.3.91.970706180123.16490A-100000@thunder.rbd.com> from "Paul J. Metzger" at Jul 6, 97 06:09:44 pm
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Paul:

What means for you linking MSVC code with cygnus code?

When you write your hello world program, you suppose that
the startup code has already initialized stdio and stderr, and all
that for you isn't it?

Well, this is done generally in the startup code that is called by the
system. That code will initialize those variables (and do some other
things) and THEN call _mainb,or _WinMain, or whatever the user entry
point is.

This is the reason you do not see anything when you try your
hello world program.

Question:
You want to use cygnu's or MSVC startup?
Related question:
You will use the cygnus or the MSVC version of 'printf'?

Normally, linking objects of two diferent compiler systems will seldom
work unless both compilers are binary compatible and run time
library compatible. This is NEVER possible when using C++ due to
name mangling. This is seldom possible in C due to library differences.

You would have more chances with the minimalist version of gcc
or with lcc.

-- 
Jacob Navia	Logiciels/Informatique
41 rue Maurice Ravel			Tel 01 48.23.51.44
93430 Villetaneuse 			Fax 01 48.23.95.39
France
-
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