Mar
30
awarded Notable Question
Feb
25
awarded Popular Question
Feb
5
accepted Undefined Reference/ Multiple Definition for namespace extern variable , c++ structuring issue
Feb
5
comment Undefined Reference/ Multiple Definition for namespace extern variable , c++ structuring issue
Thank you! I knew this but I was struggling with the syntax I suppose around the definition. I have now have just plonked the definition on the top level of the source file scoping as you did and it's compiled fine. (Previously I was trying to enclose it within namespace braces and had no luck). Ta!
Feb
5
comment Undefined Reference/ Multiple Definition for namespace extern variable , c++ structuring issue
@ArthurChamz I can say with complete certainly that extern std::ofstream logfile is the only time such a variable is declared. The (only) place i try to initialise it is logfile.open("log.txt", std::ios_base::out | std::ios_base::app ); and the only place I ever use it is in Helper::Log. Helper::Logand Helper::EnableLogging are only called once, from within that other project source file I mentioned. Thanks for having a look at it!
Feb
5
asked Undefined Reference/ Multiple Definition for namespace extern variable , c++ structuring issue
Feb
4
awarded Popular Question
Jan
12
asked Random selection for a variable set with a guarantee of every item at least once
Dec
23
accepted How to create a length prefix for file being sent on socket?
Dec
23
comment How to create a length prefix for file being sent on socket?
Ah that's good to know, I was under the impression that it might be different dependending on the size of the register.
Dec
22
asked How to create a length prefix for file being sent on socket?
Dec
16
accepted Using Android Studio's logcat better, permanent focus on a single process?
Dec
16
comment Using Android Studio's logcat better, permanent focus on a single process?
Not quite what you said but you made me give the filter box another look and I sorted it out: I clicked Edit Filter configuration on the filters drop down and added my complete package name like so com.bitbucket.hollyzorx.myapp in the by Package name box and that seems to have done the trick! Thought I'd give you the rep but you might want to mention my comment in your answer for future users.
Dec
16
asked Using Android Studio's logcat better, permanent focus on a single process?
Dec
9
comment Why can't I run a c# console application in debug mode? (MonoDevelop Issue?)
Thanks @KSdev :) but as i (poorly) explained it doesn't make any difference, i tried in debug mode and i get the same 'Attach to process' window pictured above.
Dec
9
asked Why can't I run a c# console application in debug mode? (MonoDevelop Issue?)
Nov
29
awarded Yearling
Aug
23
awarded Scholar
Aug
23
accepted Why aren't GPIO_22 and GPIO_23 lighting up LEDs? (Beginner)
Aug
23
comment Why aren't GPIO_22 and GPIO_23 lighting up LEDs? (Beginner)
Turned out my breadboard was just a bit of a dud with some holes in the bottom right corner not creating a circuit properly. Is that common? Thanks for taking a look and gave answer for useful tips.
1 2 3 4 5