Thank u so much for the reply.
At present the The directoy WIN32_D.OBJ is not created inside xpcom/build/
So now i explicitly created it and copied the files from
xpcom\sample\WIN32_O.OBJ to the directory u mentioned.
the files were
cmd.cfg
nsSample.obj
nsSampleModule.obj
Please note that the directory WIN32_O.OBJ inside xpcom\sample gets created
when i try to build the sample using nmake.
But even after i did the above thing i get the same error.
+++ make: exporting IDL files
+++ make: exporting generated XPIDL header files
+++ make: installing typelib '.\_xpidlgen\sample.xpt' to components
directory
+++ make: Creating DLL: .\WIN32_O.OBJ\sample.dll
..\..\dist\WIN32_O.OBJ\lib\xpcom.dll : fatal error LNK1136: invalid or
corrupt file
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please let me know if i have misunderstood u or if i have missed anything.
What is the problem??
Thanks in advance
Regards
Pras
"John Bandhauer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Clobber the output files in xpcom/build/WIN32_O.OBJ and build
> again.
>
> John.
>
> Anandprasanna Gaitonde wrote:
> >
> > Hello sirs,
> >
> > Can u please help with the creation of sample.dll.
> >
> > I am trying to create it using the nmake facility. I am just trying to
bild
> > the sampl itself.
> > when i do
> > nmake /f makefile.win
> > I am getting the following error.
> >
> > +++ make: exporting IDL files
> > +++ make: exporting generated XPIDL header files
> > +++ make: installing typelib '.\_xpidlgen\sample.xpt' to components
> > directory
> > +++ make: Creating DLL: .\WIN32_O.OBJ\sample.dll
> > ..\..\dist\WIN32_O.OBJ\lib\xpcom.dll : fatal error LNK1136: invalid or
> > corrupt file
> > ^^^^^^^^^^^^^^^^
> >
> > Why is this error coming. Is the problem with file xpcom.dll?? Ami
missing
> > something??
> >
> > Please let me know
> >
> > Thanks in advance
> >
> > Pras
> >
> > "Ryoichi Furukawa" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi,
> > >
> > > I create sample.dll on IDE of VC++6.0(SP3)
> > > on Windows2000(SP1)
> > > It's sample xpcom dll included in mozilla/xpcom/sample/.
> > > (I imported sample codes *.cpp *.h in VC++ IDE project.)
> > >
> > > If I create sample.dll on the command line 'nmake',
> > > and put it under the bin/component directory.
> > > When mozilla loads xpconnect-sample.html,
> > > sample.dll is running. (Good!!)
> > >
> > > But If I create sample.dll on the IDE,
> > > mozilla crashes everytime.
> > >
> > > A call stack is 'only' this.
> > >
> > > 0012dea0()
> > >
> > > Though source files are no different,
> > > why sample.dll crashes Mozilla?
> > >
> > > Could you teach me how to use VC++ IDE
> > > instead of command line build ?
> > > (ex. need more special include file,
> > > or set environment variable, etc... )
> > >
> > >
> > > Thanks.
> > >
> > > --
> > > Ryoichi Furukawa
> > > <[EMAIL PROTECTED]>
> > >