| |
| |
| |
|
Page: 1 2 3
Comments:
<0> HIGHLLAND: you seem to be confusing IDEs with compilers. <1> www.compilers.net <2> in www.compilers.net i can find free compilers? <3> codeblock is a good c++ ide and it uses mingw32 compiler <3> www.codeblocks.org <2> codeblock can compile good? <3> yes <3> no i mean codeblock is just an ide <3> a compiler is diff from ide <2> i 'm interesting for compilers <2> beta test C++ is a good Compiler? <1> ?? <2> ?? <4> ?? <5> ?? <2> ??
<4> uh oh. Recursion. <1> how do you define a good compiler? <6> #define good_compiler <3> lol <1> i asked for a good compiler not good_compiler :P <1> #define good_compiler "a good compiler" <1> at least <4> define's are bad. <4> Except for when they're useful. <1> mhm <1> static const char* const good_compiler="a good compiler"; <1> better? :) <1> besides that i am using C mostly <7> hi! how can you create a structure wherein a variable have diff data type. For example a variable named 'SystemStateValue' may sometimes have a boolean, an integer or even boolean value <1> simple or advanced solution? <7> i've read some articles about this and maybe union is needed to do this but i cant seem to get it to work <4> template the cl***, and use the template parameter to define the member type. <1> :) <7> can you please give me an example code, Def <6> VARIANT pwns j00 <4> template< typename T > cl*** MyCl*** { T SystemStateValue; } MyCl***< int > myinstance; <4> Might need a ; after the } too. <1> has boost some wraper for a discriminated union type? <8> cehteh, variant <1> hi Belzex :) <8> heya christian :) <9> hey, err, i'm using MFC and i got a combo box, i've created a member variable for it and when i do m_Combo.AddString(TEXT("moo")); it doesn't add anything? <10> you can make web services with c++ right? <4> Can you? <10> well i read c# is really great with web service <10> c# is based on c++ anyway but i think the syntax for c# is easier.. <4> c# is not based on C++ in any way, shape, or form. It has a similar syntax so programmers find it easier to migrate, but that's all. <4> And yes, C# is good for that kind of stuff. <7> i think c# looks more like java than c++ <4> Probably because Java syntax was based on C++ too. <9> anyone know the answer to my question? <10> hmmm... <10> i read in a book c# comes from c++.. <10> he even said because MS had issues with j++ which is java they have to make their own quickly for a lil average language <10> c# was created mostly for the web...because java is own by sun they have to make their own <11> what a heartless comment <12> C# is supposed to be the de-facto .NET language <12> not just for the web. <12> it was created because VB has a very terrible reputation and thus would not be adopted by programmers readily as the .NET language of choice... Managed C++ can be complicated for semi-experienced developers.. and Microsoft stopped producing J++ because it was a disaster and they got their ***es sued off them by Sun. <13> Hello all <13> I have a curious problem, which I'm sure some of you have faced before: <13> I've created cl*** A which encapsulates the notion of a graph (vertices and edges) on which some iterative process is executed. <12> Yes, that is certainly a problem. <13> I also want to create cl*** B, which outputs the state of the graph in every so iteration to some BMP file. <13> Problem is: <14> why was it executed? did it kill someone? <14> capital punishment is wrong! <13> I need to #include each cl*** in the other, because I want cl*** A to have cl*** B as its friend, and cl*** B should have methods that receive an object of type A, and inquire it in order to draw it. <13> But this circular depndency won't work. Any suggestions as to the relationship between the two cl***es ? <13> Anything ? <15> hi everyone <15> I am linking a VS app (stdcall) with a GCC compiled library, and it works. However, in a very strange place, it crashes <15> I access a static structure and try to ***ign it a value, and there is an access violation <15> for example
<15> char sss[128] <15> and then I do sss[0] = 100; and it crashes <15> static char sss[128]; <15> I mean <15> what could possibly be a reason for this <15> it is a crash that basically should not happen <16> http://news.bbc.co.uk/2/hi/africa/4748292.stm <-- this is the funniest story i've read <15> so... <15> could it be something like structure alignment? <15> gcc ****s <15> so difficult to debug <16> heh <16> use gdb along with gcc, it can do wonders for your head <17> people, I am seeking your advice about something. I have a PropertyDomainInteger that is a property (key, value pair ) identified as type INTEGER and that has a Minimum and Maximum range, for validation. The problem is that this propert represents anything that is integral, signed, unsigned, etc... <17> Now this object has also a validate() method that validates the property value against the domain. My problem is that the MinRaneg and MaxRange are int. meaning that they take only half of the range of an unsigned int. <17> I also have bool m_isMinRangeDefined and bool m_isMaxRangeDefinedbecause obviously I cannot use any value as an "undefined" one <15> hi guys <15> is there any set of circumstances where I can do static foo[128]; and in a static function elsewhere, foo[0] = 0; crashes? <15> static int8 foo[128], I mean <18> marcolicious, what are you trying to do? <18> btw, nice nick <15> I'm trying to debug some code <15> fix up a crash from someone elses code <15> and that line crashes <18> ok. you mentioned earlier that you were trying to compile a VS app (with stdcall linkage) using GCC <18> may I ***ume that you're trying to link directly with DLLs that weren't built with GCC? <15> yes, that's correct <14> are the two (whats the word.. ABI?)s are even compatible? <18> are you doing this in Win under 1) cygwin, 2) mingw, or 3) are you doing this in linux under mono? <15> I am compiling the library under cygwin <15> linking that library with a dll I compile with VS7, and the calling the dll with a console app, also in VC7 <18> which linker are you using? <15> the cygwin default linker <18> ok. that's most likely part of the problem <15> the thing is, it's a large app, and everything works <15> apart from that one static variable <14> static int8 foo[128] .. ie.. a char foo[128] ? <18> do you know if you're using something to wrap the calls to the win32 api functions? <15> there are no win32 api calls in the cygwin compile lib <15> int8 foo is an 8 bit integer, so I guess it's a char <15> I'll have to check how it is defined <18> hmm . . . I find it hard to believe that you could be using stdcall calling convention and not somehow invoking (even indirectly) any win32 apis <15> oh yes <18> you might want to double check that with nm <15> that part is invoking <15> okay, but wait <15> I fixed the problem <15> or rather, I discovered a way to make the problem go away <15> I removed the "static" from the variables <15> now it works <15> but I do not know why, and it worries me <15> what is the difference between file scope static variables and file scope variables without the static keyword? <18> I suspect it was the way statics are linked via the GNU linker and the way they're linked via the VS linker <18> do you know ASM? <15> I know basic asm <15> school asm, not intel asm <18> if so, then you can use gdb to check the regs to see what gets loaded in the _init block <18> was that static var a global? <15> it was cpp file scope <15> so it would be globally accessible <14> but its only needed within that particular file? <18> ok. this definitely is sounding more and more like a linkage issue <15> yes <15> only there <14> then you dont need the static keyword <15> what does the keyword actually do? <14> unless you have another variable named the same thing in another source file <18> static is a hint <18> compilers can, but usually don't ignore it <18> it's a hint to tell the compiler to set aside some space in the exe object (typically in the BSS block) <18> for that object <15> hmmmmm <18> most non-stack allocated vars get allocated in the BSS section
Return to
#c++ or Go to some related
logs:
#worldchat arse monger havlet #kl eta mp3s sixsity #allnitecafe pulsuz chat #india Yildizlar Ve Yakamoz
|
|