c++.windows.32-bits - Previous Definition Different
- Stephen De Chellis (109/109) Nov 07 2002 Hello,
- Walter (4/16) Nov 07 2002 That message usually means you have the same name defined twice.
- Stephen De Chellis (13/37) Nov 07 2002 I understand about defining the same name twice, what I can not figure o...
- Walter (4/44) Nov 07 2002 The error message says the name that is defined multiple times. Try grep...
- Rajiv Bhagwat (19/68) Nov 07 2002 Stephen, you are compiling both fairy.c and fmtkfile.c: This is not
- Stephen De Chellis (14/85) Nov 08 2002 Ahhh.... That explains it to me.
Hello, I'm trying to re-use some of my code in a new app and I've hit a snag early on... I'm getting the "Previous Definition Different" error code when I add in my common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information begin 666 program.zip M+6?[,"9PS'OCO3QW9(Y?_R_KF^??/ =<YP'-'X["<J.S["&GRUC 2;]_`IX M64Q2, CH,4D2RJ76OYK^3^M8FOJ6IF&RC C\>D?3B-WQH_BW)C5DJU64+'>H M J[(-NGEN>,2SM9YB(R73=D%%SD)5CL6*&LE<Q%1MD]+Z'R/F-.T= O)$5G0 M')8,8I(3R0[C( ?^J&79*%B1JS?]:S #W[STH8.1^A]?=D^54%$])=2_+CZ0 M15.A"NL_9&2?^I$FR3[5IK<MLCY6YB9I84Q)D+'TS2'&2<4HHO5CPDDCV) E M$8B80!2(`!8Y6S5V%"54?-)_MBC,7OVT$Z",8L+P*Z\DFEP9S6&NBNJP (X( MV:$KE\KPBIR_W7C48+E!NBR*UL+S$';I4L17;]NX!EF0E*/C#HOH I*\74P3 M*R3+'$ZMD3:Q8$I3)Z I=(;6R/.UD6Y";*5<!&E(>M 3G)R6S/*>;2[)A[V M+"P4J^][ N%<3[AY+_* /*'?)H+:3XO4.59^;O8MHB%+&R'9+( *4F=T8=L] ML QKIDTFMJ5KOC4>=5LLZ.N<LWS+ B+5-O29YKKC:9OV/!\ 2)<Y6V.ISA I MEBFS7GXVIHPD=!NUE?.B2H?,46\S1>H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\%``"$$ ``!P`````` M```!`" `MH$`````9F%I<GDN8U!+`0(4`!0````(``I"9RW01$IHD ```&0! M```,``````````$`( "V 20&``!&35)E<V]U<F-E+FA02P$"% `4````" "[ M06<M$/BZO/L```!T` ``" `````````!`" `MH'>! ``1F%I<GDN<F-02P$" M% `4````" #X1F M92YH4$L!`A0`% ```` `T4QG+>S6KT^"` ``10D```H``````````0` `+:! M00L``$9-5$M&:6QE+F-02P$"% `4````" !$4&<M,IFZ).<```#Q $```````` ` end
Nov 07 2002
That message usually means you have the same name defined twice. "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqdvne$1j0g$1 digitaldaemon.com...Hello, I'm trying to re-use some of my code in a new app and I've hit a snag early on... I'm getting the "Previous Definition Different" error code when I addinmy common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information
Nov 07 2002
I understand about defining the same name twice, what I can not figure out is what I am defining twice! The code is exactly the same as from where I harvested it from, and I'm not aware of having anything defined! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information "Walter" <walter digitalmars.com> wrote in message news:aqe42k$1nfv$1 digitaldaemon.com...That message usually means you have the same name defined twice. "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqdvne$1j0g$1 digitaldaemon.com...snagHello, I'm trying to re-use some of my code in a new app and I've hit aaddearly on... I'm getting the "Previous Definition Different" error code when Iinmy common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information
Nov 07 2002
The error message says the name that is defined multiple times. Try grepping the source code and .h files for the name. -Walter "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqefh2$23bu$1 digitaldaemon.com...I understand about defining the same name twice, what I can not figure out is what I am defining twice! The code is exactly the same as from where I harvested it from, and I'm not aware of having anything defined! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information "Walter" <walter digitalmars.com> wrote in message news:aqe42k$1nfv$1 digitaldaemon.com...That message usually means you have the same name defined twice. "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqdvne$1j0g$1 digitaldaemon.com...snagHello, I'm trying to re-use some of my code in a new app and I've hit aaddearly on... I'm getting the "Previous Definition Different" error code when Iinmy common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information
Nov 07 2002
Stephen, you are compiling both fairy.c and fmtkfile.c: This is not required, as you are including fmtkfile.c inside fairy.c. Just compile fairy.c, the multiple defn error vanishes. ie instead of: sc -mn -cpp fairy.c fmtkfile.c Just use: sc -mn -cpp fairy.c Ideally, avoid such includes. Also, it is not a good practice to put function source inside a header file, as you have done in 'file.h'. You will land up in similar trouble if this header is included in multiple sources. (Such a thing should only be done for 'inline' or 'template' functions.) - Rajiv "Walter" <walter digitalmars.com> wrote in message news:aqf8sg$2s9n$1 digitaldaemon.com...The error message says the name that is defined multiple times. Trygreppingthe source code and .h files for the name. -Walter "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqefh2$23bu$1 digitaldaemon.com...outI understand about defining the same name twice, what I can not figureIis what I am defining twice! The code is exactly the same as from whereIharvested it from, and I'm not aware of having anything defined! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information "Walter" <walter digitalmars.com> wrote in message news:aqe42k$1nfv$1 digitaldaemon.com...That message usually means you have the same name defined twice. "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqdvne$1j0g$1 digitaldaemon.com...snagHello, I'm trying to re-use some of my code in a new app and I've hit aearly on... I'm getting the "Previous Definition Different" error code whenaddinmy common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information
Nov 07 2002
Ahhh.... That explains it to me. I'm rather new at all this, only about 1 year. -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information "Rajiv Bhagwat" <dataflow vsnl.com> wrote in message news:aqfl80$74s$1 digitaldaemon.com...Stephen, you are compiling both fairy.c and fmtkfile.c: This is not required, as you are including fmtkfile.c inside fairy.c. Just compile fairy.c, the multiple defn error vanishes. ie instead of: sc -mn -cpp fairy.c fmtkfile.c Just use: sc -mn -cpp fairy.c Ideally, avoid such includes. Also, it is not a good practice to put function source inside a headerfile,as you have done in 'file.h'. You will land up in similar trouble if this header is included in multiple sources. (Such a thing should only be done for 'inline' or 'template' functions.) - Rajiv "Walter" <walter digitalmars.com> wrote in message news:aqf8sg$2s9n$1 digitaldaemon.com...whereThe error message says the name that is defined multiple times. Trygreppingthe source code and .h files for the name. -Walter "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqefh2$23bu$1 digitaldaemon.com...outI understand about defining the same name twice, what I can not figureis what I am defining twice! The code is exactly the same as fromIaharvested it from, and I'm not aware of having anything defined! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information "Walter" <walter digitalmars.com> wrote in message news:aqe42k$1nfv$1 digitaldaemon.com...That message usually means you have the same name defined twice. "Stephen De Chellis" <steve hmtk.com> wrote in message news:aqdvne$1j0g$1 digitaldaemon.com...Hello, I'm trying to re-use some of my code in a new app and I've hitwhensnagearly on... I'm getting the "Previous Definition Different" error codeIaddinmy common dlg file i/o functions. Any help would be much appreciated! -- Thank You Stephen De Chellis steve hmtk.com www.hmtk.com for HMTK information www.kenzerco.com for HackMaster information
Nov 08 2002