Click here to Skip to main content
15,909,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
prasad_som10-Feb-09 6:41
prasad_som10-Feb-09 6:41 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Desmond Mardle10-Feb-09 7:32
Desmond Mardle10-Feb-09 7:32 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Niklas L10-Feb-09 21:21
Niklas L10-Feb-09 21:21 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Desmond Mardle10-Feb-09 23:16
Desmond Mardle10-Feb-09 23:16 
QuestionDumping the call stack to a log at runtime Pin
Code-o-mat10-Feb-09 5:25
Code-o-mat10-Feb-09 5:25 
AnswerRe: Dumping the call stack to a log at runtime Pin
Stuart Dootson10-Feb-09 6:44
professionalStuart Dootson10-Feb-09 6:44 
GeneralRe: Dumping the call stack to a log at runtime Pin
Code-o-mat10-Feb-09 6:46
Code-o-mat10-Feb-09 6:46 
QuestionCalling global function causing linking error. Pin
Comp_Users10-Feb-09 2:53
Comp_Users10-Feb-09 2:53 
Hi,

In my project, I have an .cpp file which contains a set of utility functions like TrimMyString() etc which could be called a lot of times.

I have made these functions global and included the .cpp file in places where I call these utility functions.

When I call these global methods from another function in my user defined class (say I want to trim a character array in one of my user defined class functions), I am getting a linking error
"fatal error LNK1169: one or more multiple defined symobls found".

However, when I make them global and static by including the static keyword, then this error no longer exists and every thing works perfectly.

How do i make this a non-static global function because this is what the current requirment is?

Thanks.
QuestionRe: Calling global function causing linking error. Pin
prasad_som10-Feb-09 3:34
prasad_som10-Feb-09 3:34 
AnswerRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 3:40
Comp_Users10-Feb-09 3:40 
AnswerRe: Calling global function causing linking error. Pin
prasad_som10-Feb-09 3:41
prasad_som10-Feb-09 3:41 
GeneralRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 3:54
Comp_Users10-Feb-09 3:54 
GeneralRe: Calling global function causing linking error. Pin
Cedric Moonen10-Feb-09 4:11
Cedric Moonen10-Feb-09 4:11 
GeneralRe: Calling global function causing linking error. Pin
CPallini10-Feb-09 3:49
mveCPallini10-Feb-09 3:49 
GeneralRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 3:55
Comp_Users10-Feb-09 3:55 
GeneralRe: Calling global function causing linking error. Pin
David Crow10-Feb-09 5:03
David Crow10-Feb-09 5:03 
AnswerRe: Calling global function causing linking error. Pin
Iain Clarke, Warrior Programmer10-Feb-09 5:54
Iain Clarke, Warrior Programmer10-Feb-09 5:54 
GeneralRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 18:25
Comp_Users10-Feb-09 18:25 
GeneralRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 18:36
Comp_Users10-Feb-09 18:36 
QuestionCalling C# DLL into core C++ Console application [modified] Pin
PankajB10-Feb-09 2:09
PankajB10-Feb-09 2:09 
AnswerRe: Calling C# DLL into core C++ Console application Pin
led mike10-Feb-09 4:30
led mike10-Feb-09 4:30 
AnswerRe: Calling C# DLL into core C++ Console application Pin
Eytukan10-Feb-09 8:43
Eytukan10-Feb-09 8:43 
QuestionHow to update single view Pin
KASR110-Feb-09 2:04
KASR110-Feb-09 2:04 
AnswerRe: How to update single view Pin
Maximilien10-Feb-09 2:43
Maximilien10-Feb-09 2:43 
AnswerRe: How to update single view Pin
David Crow10-Feb-09 3:00
David Crow10-Feb-09 3:00 

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.