You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Sam Carleton <sc...@miltonstreet.com> on 2011/02/20 19:48:47 UTC

Windows Axis2/C linking to msvcrt.dll

I have been compiling my own Axis2/C for a while now on Windows.  One minor
issue that has bothered by for a while is that Apache was using it, which
uses the originall msvcrt.dll runtime, but my custom compiled Axis2/C
required the runtime specific to the compiler I am using, VS2008.

I ran into this article that talks about how to actually compile against the
original msvcrt.dll:

http://nn1234.wordpress.com/2008/04/11/vc-90-msvcrtdll-windows-95/

I started the conversion like 6 months ago and got part of it working, but
succeeded yesterday with the rest of the conversion.  If others are
interested in knowing what I did to get it to work, let me know.

Sam

Re: Windows Axis2/C linking to msvcrt.dll

Posted by Sam Carleton <sc...@miltonstreet.com>.
As far as my code goes, I have not purged MSVC2008 from all of it yet.  I am
doing it slowly in steps...

Since Apache is still compiled with an older compiler as not to depend on
the newer run times, my first goal was to purge the other open source Apache
is using of the runtime.  I have succeeded in purging both SQLite and now
Axis2/C.  When time allows I will continue to move up the chain:)

There where code changes.  There was one or two minor things I did back 6
months ago, but I cannot remember what they were.  I dropped the topic
because those fixes were really simple and obvious and the set was a bit
more complex.

The more complex issue was the usage of the function stat.  I ended up
simply finding all the occurrences of both the function calls and
declaration of the struct and putting an underscore in front of it.

Here is a link to the makefile I modified, it is zipped:

https://www.yousendit.com/download/T2pFclVBNDQxUUJjR0E9PQ

Sam
On Sun, Feb 20, 2011 at 2:15 PM, Thomas Gentsch <tg...@e-tge.de> wrote:

>
> Hi Sam,
>
> yes, that sounds quite interesting!! I'm using MSVC2008 (I think :-) and
> bundle in my installer a vcredist.exe - I guess this is how MS wants us
> to do it.
> If I get you right, I could skip this with your changes?
>
> What was it you changed exactly - any C code or just the build process?
>
> And, do you use C++ as well or just C? The article you referred to talks
> about this as well, but it is not quite clear to me. For me particularly
> STL is of interest, however I would like to avoid trading one dependency
> with another one ...
>
> Rgds,
>  tge
>
> On Sun, 2011-02-20 at 13:48 -0500, Sam Carleton wrote:
> > I have been compiling my own Axis2/C for a while now on Windows.  One
> > minor issue that has bothered by for a while is that Apache was using
> > it, which uses the originall msvcrt.dll runtime, but my custom
> > compiled Axis2/C required the runtime specific to the compiler I am
> > using, VS2008.
> >
> > I ran into this article that talks about how to actually compile
> > against the original msvcrt.dll:
> >
> > http://nn1234.wordpress.com/2008/04/11/vc-90-msvcrtdll-windows-95/
> >
> > I started the conversion like 6 months ago and got part of it working,
> > but succeeded yesterday with the rest of the conversion.  If others
> > are interested in knowing what I did to get it to work, let me know.
> >
> > Sam
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>

Re: Windows Axis2/C linking to msvcrt.dll

Posted by Thomas Gentsch <tg...@e-tge.de>.
Hi Sam,

yes, that sounds quite interesting!! I'm using MSVC2008 (I think :-) and
bundle in my installer a vcredist.exe - I guess this is how MS wants us
to do it.
If I get you right, I could skip this with your changes?

What was it you changed exactly - any C code or just the build process?

And, do you use C++ as well or just C? The article you referred to talks
about this as well, but it is not quite clear to me. For me particularly
STL is of interest, however I would like to avoid trading one dependency
with another one ...

Rgds,
  tge

On Sun, 2011-02-20 at 13:48 -0500, Sam Carleton wrote:
> I have been compiling my own Axis2/C for a while now on Windows.  One
> minor issue that has bothered by for a while is that Apache was using
> it, which uses the originall msvcrt.dll runtime, but my custom
> compiled Axis2/C required the runtime specific to the compiler I am
> using, VS2008.  
> 
> I ran into this article that talks about how to actually compile
> against the original msvcrt.dll:
> 
> http://nn1234.wordpress.com/2008/04/11/vc-90-msvcrtdll-windows-95/
> 
> I started the conversion like 6 months ago and got part of it working,
> but succeeded yesterday with the rest of the conversion.  If others
> are interested in knowing what I did to get it to work, let me know.
> 
> Sam




---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


AW: Windows Axis2/C linking to msvcrt.dll

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
I had the same issue but after a while I got it work.

Josef

 

 

Von: scarleton@gmail.com [mailto:scarleton@gmail.com] Im Auftrag von Sam Carleton
Gesendet: Sonntag, 20. Februar 2011 19:49
An: Apache AXIS C User List
Betreff: Windows Axis2/C linking to msvcrt.dll

 

I have been compiling my own Axis2/C for a while now on Windows.  One minor issue that has bothered by for a while is that Apache was using it, which uses the originall msvcrt.dll runtime, but my custom compiled Axis2/C required the runtime specific to the compiler I am using, VS2008.  

I ran into this article that talks about how to actually compile against the original msvcrt.dll:

http://nn1234.wordpress.com/2008/04/11/vc-90-msvcrtdll-windows-95/

I started the conversion like 6 months ago and got part of it working, but succeeded yesterday with the rest of the conversion.  If others are interested in knowing what I did to get it to work, let me know.

Sam