Thread overview
DMC 8.39.1: Error 1: Previous Definition Different : __Exit
Dec 11, 2003
Gilles Depeyrot
Dec 12, 2003
Walter
Dec 12, 2003
Gilles Depeyrot
Dec 12, 2003
Walter
Dec 13, 2003
Gilles Depeyrot
Dec 14, 2003
Walter
Dec 14, 2003
Gilles Depeyrot
Dec 14, 2003
Walter
Dec 15, 2003
Gilles Depeyrot
December 11, 2003
Hi,

Any idea how to solve this error?

...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
 Error 1: Previous Definition Different : __Exit
OPTLINK : Warning 134: No Start Address

Regards,
Gilles
December 12, 2003
It means __Exit is multiply defined. Does it exist in your program?

"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:branke$2s73$1@digitaldaemon.com...
> Hi,
>
> Any idea how to solve this error?
>
> ...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
>   Error 1: Previous Definition Different : __Exit
> OPTLINK : Warning 134: No Start Address
>
> Regards,
> Gilles


December 12, 2003
Hi,

Exit does not exist in my sources. I didn't think so but I checked by searching all source and header files for definition of exit. None found.

I am trying to link a DLL if that has any importance.

Regards,
Gilles

Walter wrote:
> It means __Exit is multiply defined. Does it exist in your program?
> 
> "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
> news:branke$2s73$1@digitaldaemon.com...
> 
>>Hi,
>>
>>Any idea how to solve this error?
>>
>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
>>  Error 1: Previous Definition Different : __Exit
>>OPTLINK : Warning 134: No Start Address
December 12, 2003
What library are you linking to?

"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brd8m2$fqp$1@digitaldaemon.com...
> Hi,
>
> Exit does not exist in my sources. I didn't think so but I checked by searching all source and header files for definition of exit. None found.
>
> I am trying to link a DLL if that has any importance.
>
> Regards,
> Gilles
>
> Walter wrote:
> > It means __Exit is multiply defined. Does it exist in your program?
> >
> > "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:branke$2s73$1@digitaldaemon.com...
> >
> >>Hi,
> >>
> >>Any idea how to solve this error?
> >>
> >>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
> >>  Error 1: Previous Definition Different : __Exit
> >>OPTLINK : Warning 134: No Start Address


December 13, 2003
I am linking against kernel32 as well as an import library for an executable. I wonder whether I am correctly compiling and linking to create my dll.

Are the following command lines correct to build a dll from multiple object files?

dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file1.cpp
dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file2.cpp
dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file3.cpp

link file1.obj file2.obj file3.obj ,mydll.dll ,,kernel32 myimport

Regards,
Gilles

Walter wrote:
> What library are you linking to?
> 
> "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
> news:brd8m2$fqp$1@digitaldaemon.com...
> 
>>Hi,
>>
>>Exit does not exist in my sources. I didn't think so but I checked by
>>searching all source and header files for definition of exit. None found.
>>
>>I am trying to link a DLL if that has any importance.
>>
>>Regards,
>>Gilles
>>
>>Walter wrote:
>>
>>>It means __Exit is multiply defined. Does it exist in your program?
>>>
>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>news:branke$2s73$1@digitaldaemon.com...
>>>
>>>
>>>>Hi,
>>>>
>>>>Any idea how to solve this error?
>>>>
>>>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
>>>> Error 1: Previous Definition Different : __Exit
>>>>OPTLINK : Warning 134: No Start Address
December 14, 2003
Run grep across the libraries you are linking with and see who is defining __Exit.

"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brg2rp$2lnj$1@digitaldaemon.com...
> I am linking against kernel32 as well as an import library for an executable. I wonder whether I am correctly compiling and linking to create my dll.
>
> Are the following command lines correct to build a dll from multiple object files?
>
> dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file1.cpp
> dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file2.cpp
> dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file3.cpp
>
> link file1.obj file2.obj file3.obj ,mydll.dll ,,kernel32 myimport
>
> Regards,
> Gilles
>
> Walter wrote:
> > What library are you linking to?
> >
> > "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brd8m2$fqp$1@digitaldaemon.com...
> >
> >>Hi,
> >>
> >>Exit does not exist in my sources. I didn't think so but I checked by searching all source and header files for definition of exit. None
found.
> >>
> >>I am trying to link a DLL if that has any importance.
> >>
> >>Regards,
> >>Gilles
> >>
> >>Walter wrote:
> >>
> >>>It means __Exit is multiply defined. Does it exist in your program?
> >>>
> >>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:branke$2s73$1@digitaldaemon.com...
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>Any idea how to solve this error?
> >>>>
> >>>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
> >>>> Error 1: Previous Definition Different : __Exit
> >>>>OPTLINK : Warning 134: No Start Address


December 14, 2003
Hi,

The only references I have found after running 'grep -i __Exit' are in dm libraries snd.lib, sdc.lib, sdl.lib, sdm.lib, sds.lib, sdx.lib and snn.lib. I searched my object files, my specific import library and the import libraries in the dm lib directory.

Running 'grep __exit' and 'grep __Exit' shows that only snn.lib contains both.

I replaced snn.lib from 8.39.1 with the one from 8.38 and no longer have the problem.

Regards,
Gilles

Walter wrote:
> Run grep across the libraries you are linking with and see who is defining
> __Exit.
> 
> "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
> news:brg2rp$2lnj$1@digitaldaemon.com...
> 
>>I am linking against kernel32 as well as an import library for an
>>executable. I wonder whether I am correctly compiling and linking to
>>create my dll.
>>
>>Are the following command lines correct to build a dll from multiple
>>object files?
>>
>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file1.cpp
>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file2.cpp
>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file3.cpp
>>
>>link file1.obj file2.obj file3.obj ,mydll.dll ,,kernel32 myimport
>>
>>Regards,
>>Gilles
>>
>>Walter wrote:
>>
>>>What library are you linking to?
>>>
>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>news:brd8m2$fqp$1@digitaldaemon.com...
>>>
>>>
>>>>Hi,
>>>>
>>>>Exit does not exist in my sources. I didn't think so but I checked by
>>>>searching all source and header files for definition of exit. None
> 
> found.
> 
>>>>I am trying to link a DLL if that has any importance.
>>>>
>>>>Regards,
>>>>Gilles
>>>>
>>>>Walter wrote:
>>>>
>>>>
>>>>>It means __Exit is multiply defined. Does it exist in your program?
>>>>>
>>>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>>>news:branke$2s73$1@digitaldaemon.com...
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>Any idea how to solve this error?
>>>>>>
>>>>>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
>>>>>>Error 1: Previous Definition Different : __Exit

December 14, 2003
Try the linker switch /noignorecase.

"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brhqsb$2475$1@digitaldaemon.com...
> Hi,
>
> The only references I have found after running 'grep -i __Exit' are in dm libraries snd.lib, sdc.lib, sdl.lib, sdm.lib, sds.lib, sdx.lib and snn.lib. I searched my object files, my specific import library and the import libraries in the dm lib directory.
>
> Running 'grep __exit' and 'grep __Exit' shows that only snn.lib contains both.
>
> I replaced snn.lib from 8.39.1 with the one from 8.38 and no longer have the problem.
>
> Regards,
> Gilles
>
> Walter wrote:
> > Run grep across the libraries you are linking with and see who is
defining
> > __Exit.
> >
> > "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brg2rp$2lnj$1@digitaldaemon.com...
> >
> >>I am linking against kernel32 as well as an import library for an executable. I wonder whether I am correctly compiling and linking to create my dll.
> >>
> >>Are the following command lines correct to build a dll from multiple object files?
> >>
> >>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file1.cpp
> >>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file2.cpp
> >>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file3.cpp
> >>
> >>link file1.obj file2.obj file3.obj ,mydll.dll ,,kernel32 myimport
> >>
> >>Regards,
> >>Gilles
> >>
> >>Walter wrote:
> >>
> >>>What library are you linking to?
> >>>
> >>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:brd8m2$fqp$1@digitaldaemon.com...
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>Exit does not exist in my sources. I didn't think so but I checked by searching all source and header files for definition of exit. None
> >
> > found.
> >
> >>>>I am trying to link a DLL if that has any importance.
> >>>>
> >>>>Regards,
> >>>>Gilles
> >>>>
> >>>>Walter wrote:
> >>>>
> >>>>
> >>>>>It means __Exit is multiply defined. Does it exist in your program?
> >>>>>
> >>>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message news:branke$2s73$1@digitaldaemon.com...
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi,
> >>>>>>
> >>>>>>Any idea how to solve this error?
> >>>>>>
> >>>>>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3 Error 1: Previous Definition Different : __Exit
>


December 15, 2003
Hi Walter,

The /noignorecase linker option solves the problem after putting back snn.lib from 8.39.1 beta. I guess that option needs to be the default now :-)

Thanks,
Gilles

Walter wrote:
> Try the linker switch /noignorecase.
> 
> "Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
> news:brhqsb$2475$1@digitaldaemon.com...
> 
>>Hi,
>>
>>The only references I have found after running 'grep -i __Exit' are in
>>dm libraries snd.lib, sdc.lib, sdl.lib, sdm.lib, sds.lib, sdx.lib and
>>snn.lib. I searched my object files, my specific import library and the
>>import libraries in the dm lib directory.
>>
>>Running 'grep __exit' and 'grep __Exit' shows that only snn.lib contains
>>both.
>>
>>I replaced snn.lib from 8.39.1 with the one from 8.38 and no longer have
>>the problem.
>>
>>Regards,
>>Gilles
>>
>>Walter wrote:
>>
>>>Run grep across the libraries you are linking with and see who is
> 
> defining
> 
>>>__Exit.
>>>
>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>news:brg2rp$2lnj$1@digitaldaemon.com...
>>>
>>>
>>>>I am linking against kernel32 as well as an import library for an
>>>>executable. I wonder whether I am correctly compiling and linking to
>>>>create my dll.
>>>>
>>>>Are the following command lines correct to build a dll from multiple
>>>>object files?
>>>>
>>>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file1.cpp
>>>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file2.cpp
>>>>dmc -c -mn -WD -D_POSIX_ -Id:\myincludedir file3.cpp
>>>>
>>>>link file1.obj file2.obj file3.obj ,mydll.dll ,,kernel32 myimport
>>>>
>>>>Regards,
>>>>Gilles
>>>>
>>>>Walter wrote:
>>>>
>>>>
>>>>>What library are you linking to?
>>>>>
>>>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>>>news:brd8m2$fqp$1@digitaldaemon.com...
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>Exit does not exist in my sources. I didn't think so but I checked by
>>>>>>searching all source and header files for definition of exit. None
>>>
>>>found.
>>>
>>>
>>>>>>I am trying to link a DLL if that has any importance.
>>>>>>
>>>>>>Regards,
>>>>>>Gilles
>>>>>>
>>>>>>Walter wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>It means __Exit is multiply defined. Does it exist in your program?
>>>>>>>
>>>>>>>"Gilles Depeyrot" <gilles_depeyrot@mac.com> wrote in message
>>>>>>>news:branke$2s73$1@digitaldaemon.com...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>Any idea how to solve this error?
>>>>>>>>
>>>>>>>>...\dm\bin\..\lib\SNN.lib(_exit)  Offset 061D5H Record Type 00C3
>>>>>>>>Error 1: Previous Definition Different : __Exit
>>
> 
>