Click here to Skip to main content
15,891,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Client Area not repainted after restore from minimization (still not solved) Pin
Iain Clarke, Warrior Programmer8-Apr-06 13:03
Iain Clarke, Warrior Programmer8-Apr-06 13:03 
GeneralRe: Client Area not repainted after restore from minimization (still not solved) Pin
naal118-Apr-06 21:45
naal118-Apr-06 21:45 
AnswerRe: Client Area not repainted after restore from minimization (still not solved) Pin
naal1113-Apr-06 6:13
naal1113-Apr-06 6:13 
QuestionBitmap transfer over socket Pin
Identity Undisclosed8-Apr-06 6:20
Identity Undisclosed8-Apr-06 6:20 
AnswerRe: Bitmap transfer over socket Pin
includeh108-Apr-06 6:55
includeh108-Apr-06 6:55 
AnswerRe: Bitmap transfer over socket Pin
El Corazon8-Apr-06 8:37
El Corazon8-Apr-06 8:37 
QuestionWindows Hook for global monitoring Pin
Virtek8-Apr-06 5:34
Virtek8-Apr-06 5:34 
QuestionLink Error in VS6 Pin
Waldermort8-Apr-06 4:30
Waldermort8-Apr-06 4:30 
I'm having an annoying link error:
Linking...
Source.obj : error LNK2005: "char * Password" (?Password@@3PADA) already defined in DataInput.obj
cCrypt.obj : error LNK2005: "char * Password" (?Password@@3PADA) already defined in DataInput.obj
Debug/Student Data.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

Student Data.exe - 3 error(s), 0 warning(s)

Before anybody states the obvious yes I do know what it means. I have char Password[50]; defined in cCrypt.h as a global variable. It is referenced as extern char Password[50]; in DataInput.h, and not even mentioned in Source.h. All my header files have the appropriate #ifdef #endif blocks, yet the compiler will not let me build.

I have had this error in the past, the only fix I could find was to rename the variable, try to compile (still with the errors) then rename it back. The link errors magicaly went away, but it is not working this time. Strange thing this time, if I declare it in Source.h and refrence it in the other files, it gives me no problems. But there is no need for it to be in the Source.h.

Is this a common problem? Bug in Visual Studio? how to get rid of it?
AnswerRe: Link Error in VS6 Pin
Hamid_RT8-Apr-06 6:00
Hamid_RT8-Apr-06 6:00 
GeneralRe: Link Error in VS6 Pin
Waldermort8-Apr-06 7:03
Waldermort8-Apr-06 7:03 
GeneralRe: Link Error in VS6 Pin
Waldermort8-Apr-06 7:06
Waldermort8-Apr-06 7:06 
GeneralRe: Link Error in VS6 Pin
Hamid_RT8-Apr-06 7:37
Hamid_RT8-Apr-06 7:37 
GeneralRe: Link Error in VS6 Pin
Waldermort8-Apr-06 8:27
Waldermort8-Apr-06 8:27 
GeneralRe: Link Error in VS6 Pin
Hamid_RT8-Apr-06 9:23
Hamid_RT8-Apr-06 9:23 
AnswerRe: Link Error in VS6 Pin
Gary R. Wheeler8-Apr-06 8:36
Gary R. Wheeler8-Apr-06 8:36 
GeneralRe: Link Error in VS6 Pin
Waldermort8-Apr-06 20:20
Waldermort8-Apr-06 20:20 
AnswerRe: Link Error in VS6 Pin
Roland Pibinger8-Apr-06 8:43
Roland Pibinger8-Apr-06 8:43 
Questiontile view in listview Pin
fajaronly8-Apr-06 3:59
fajaronly8-Apr-06 3:59 
AnswerRe: tile view in listview Pin
includeh108-Apr-06 7:55
includeh108-Apr-06 7:55 
GeneralRe: tile view in listview Pin
fajaronly8-Apr-06 8:13
fajaronly8-Apr-06 8:13 
Questionabout VSS Pin
FlyWithYou8-Apr-06 3:07
FlyWithYou8-Apr-06 3:07 
AnswerRe: about VSS Pin
Waldermort8-Apr-06 4:11
Waldermort8-Apr-06 4:11 
GeneralRe: about VSS Pin
FlyWithYou8-Apr-06 5:52
FlyWithYou8-Apr-06 5:52 
GeneralRe: about VSS Pin
Gary R. Wheeler8-Apr-06 8:42
Gary R. Wheeler8-Apr-06 8:42 
GeneralRe: about VSS Pin
FlyWithYou8-Apr-06 15:24
FlyWithYou8-Apr-06 15:24 

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.