Subject: Re: MSVC linker
From: [email-masked] (root)

7 Jul 1997 03:01:12 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Content-Type: text
Original-To: [email-masked] (Paul J. Metzger)
Original-Cc: [email-masked]
In-Reply-To: <[email-masked]> from "Paul J. Metzger" at Jul 6, 97 06:09:44 pm
Original-Sender: [email-masked]

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
"[email-masked]" with one line of text: "help".