This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: MSVC linker
- To: pjm at rbd dot com (Paul J. Metzger)
- Subject: Re: MSVC linker
- From: root at jacob dot remcomp dot fr (root)
- Date: Mon, 7 Jul 1997 10:55:51 +0200 (MET DST)
- Cc: 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@cygnus.com" with one line of text: "help".