Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC SDI App Pin
l a u r e n13-Jan-04 15:32
l a u r e n13-Jan-04 15:32 
GeneralRe: MFC SDI App Pin
Robert A. T. Káldy14-Jan-04 0:44
Robert A. T. Káldy14-Jan-04 0:44 
GeneralCPU usage per process. Pin
ham744613-Jan-04 13:43
ham744613-Jan-04 13:43 
QuestionHow to get the default size of i/o com buffers? Pin
twing13-Jan-04 13:39
twing13-Jan-04 13:39 
QuestionGrouping ctrls in a group box...? Pin
Tommy Svensson13-Jan-04 13:36
Tommy Svensson13-Jan-04 13:36 
AnswerRe: Grouping ctrls in a group box...? Pin
Ryan Binns13-Jan-04 17:40
Ryan Binns13-Jan-04 17:40 
GeneralEdit paste copy problem Pin
Chernobog113-Jan-04 13:11
Chernobog113-Jan-04 13:11 
Generaldll linkage madness Pin
bryce13-Jan-04 12:17
bryce13-Jan-04 12:17 
Hello
i have been asked to look at a dll "issue"
and i cant see why its acting up.
However, when the dll builds the linker throws a headcase and spews out a bunch of errors
<br />
<br />
ClientState.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
DisplayControl.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
EquipmentID.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
FaultData.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
MSCIntraInterface.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
MsgQueue.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />
TcpListener.obj : error LNK2005: "char const * * RPD_APP_FILE_EXT" (?RPD_APP_FILE_EXT@@3PAPBDA) already defined in ClientControl.obj<br />

Sort of thing

The RPD_APP_EXT is defined in "globaldefines.h" which uses
<br />
#ifndef GlobalDefines_h<br />
#define GlobalDefines_h<br />
<br />
const char * RPD_APP_FILE_EXT[] = {".RPD", ".RVR", ".UDO", ".RDO", ".ZRP"};<br />
<br />
etc etc<br />
<br />
#endif<br />
<br />


And as well as that the header files for every class all correctly use
#ifndef < sometag >
#define < some tag >
.
(.class definitions etc)

#endif



also,The compiler settings are set with the multithreaded /md option

I was wondering if anyone had any suggestions as to what one might do to fix this issue?
regards

Bryce

---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
GeneralRe: dll linkage madness Pin
twing13-Jan-04 14:06
twing13-Jan-04 14:06 
GeneralRe: dll linkage madness Pin
bryce13-Jan-04 14:16
bryce13-Jan-04 14:16 
GeneralRe: dll linkage madness Pin
rpins13-Jan-04 17:17
rpins13-Jan-04 17:17 
GeneralRe: dll linkage madness Pin
PJ Arends13-Jan-04 17:31
professionalPJ Arends13-Jan-04 17:31 
GeneralRe: dll linkage madness - fixed now Pin
bryce13-Jan-04 19:12
bryce13-Jan-04 19:12 
GeneralEvent handling problem - unmanaged C++ COM and VB .NET interop Pin
rpins13-Jan-04 11:24
rpins13-Jan-04 11:24 
GeneralPointers and the adresse bus Pin
Ralf Friedrich Hain13-Jan-04 11:11
Ralf Friedrich Hain13-Jan-04 11:11 
GeneralRe: Pointers and the adresse bus Pin
Joaquín M López Muñoz13-Jan-04 11:26
Joaquín M López Muñoz13-Jan-04 11:26 
GeneralRe: Pointers and the adresse bus Pin
markkuk13-Jan-04 11:58
markkuk13-Jan-04 11:58 
QuestionAnyone know of any good memory pool classes or templates for VC6? Pin
prcarp13-Jan-04 9:27
prcarp13-Jan-04 9:27 
AnswerRe: Anyone know of any good memory pool classes or templates for VC6? Pin
Joaquín M López Muñoz13-Jan-04 10:56
Joaquín M López Muñoz13-Jan-04 10:56 
GeneralRe: Anyone know of any good memory pool classes or templates for VC6? Pin
prcarp13-Jan-04 11:20
prcarp13-Jan-04 11:20 
GeneralRe: Anyone know of any good memory pool classes or templates for VC6? Pin
Joaquín M López Muñoz13-Jan-04 11:40
Joaquín M López Muñoz13-Jan-04 11:40 
Questionprofile in VC 6 ? Pin
Maximilien13-Jan-04 7:46
Maximilien13-Jan-04 7:46 
Generaledit or list box color change Pin
act_x13-Jan-04 6:25
act_x13-Jan-04 6:25 
GeneralRe: edit or list box color change Pin
valikac13-Jan-04 6:30
valikac13-Jan-04 6:30 
GeneralRe: edit or list box color change Pin
act_x13-Jan-04 6:41
act_x13-Jan-04 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.