This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MSVC linker


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]