@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> GNU/Linux isn't an OS, it is an ecosystem
<1> with all the ecofreaks hanging around it also
<0> eheheh
<0> I am not advertising, but in terms of enterprise level stability, I suggest take a look at scientific linux (http://www.scientificlinux.org). It is Red Hat *Enterprise* Linux recompiled basically.
<0> Very bullet proof.
<0> I have moved to it from Windows XP recently and permanently
<1> fine, have fun
<0> :)
<2> Hi there. Today I've encountered a weird bug -- I've compiled a Hello world program (includes nothing but cstdio) , and linked it with a library. Even provided that it didn't include the library header files, the library code actually got called -- it got into an eternal loop. That's weird for me.
<3> melfar your words are useless without code
<3> cstdio for hello world? odd
<1> why did puts("Hello World!"); call your library?
<2> I've been told that it happens if the linked code contains static variables/cl*** members that have initialization, and the initialization code would run in that case, is that true?
<3> of course
<1> they have to be initialized sometime
<2> vawjrwrk: no idea, but I have gdb-debugged it, and it's stuck somewhere in library code



<1> and it's _before_ int main()
<1> sounds like the library is ****ed up
<1> <shrug>
<3> "somewhere"? where?
<2> sure it's before, my code has never been called
<3> what library is it?
<2> it's Adobe Flash Player 6.0
<2> sdk
<2> MemoryChunks, or kinda
<1> so go bitch to Adobe
<2> I'm not sure I'd get any response
<3> well you certainly won't if you don't contact them first
<2> vawjrwrk: so is it true about static vars initialization to be called before main?
<3> yes
<2> rdragon: I suppose it's my issue, I'm trying to port it to mips
<1> when did you think static vars got initialized
<2> I didn't think their initialization allows calling functions
<3> what does that mean?
<2> allows functions to be called in order to initialize them
<3> why wouldn't initialization code be allowed to call a function ?
<4> Every time you create a module-level C++ object, you're calling at least one function (the constructor).
<4> Never mind stuff like HANDLE foo = CreateEvent(...);
<1> melfar there are no restrictions (well few) on what you CAN write in a constructor)
<1> one has to be a bit more careful w/ things that _might_ be declared global (static isn't the only gotcha here)
<2> ok thanks, gotta investigate why it's going into an eternal loop then
<1> like trying to output stuff to the console can be somewhat problematic
<1> because the console stuff may not be properly constructed yet
<3> melfar the order of initialization for static objects isn't known
<1> rdragon does that hold in a single compilaton unit also?
<3> not sure, i think it might be known within a single compilation unit
<1> globals are 'order of definition' in a single c-u
<5> hello ^^
<1> hello
<5> how're you ?
<5> i'm needing some help with xerces-c
<1> this is a C++ channel, not C /join #C main
<5> but xerces it's for c++ too
<5> well, what i wanna do is parse a xml file with C++
<5> how can i do it ?
<5> please ?
<3> LuiGGi - do you have an actual question, or are you just too lazy to dig through google for a few minutes?
<5> i have an actual question
<3> then ask it
<6> H3llo0
<3> Erag0n talk english, not moron
<5> Ok, i'll tell you the little history... I need to parse XML with C++, so i googled and i found Xerces and Expatt... I tried with Xerces, but there's a linker error... But I linked the .lib and i added the header files too :S
<3> so try to fix the error
<3> if you want us to help, you'll have to give us some information about it
<6> is just a hello rdragon :)
<5> do you wanna know the linker error? just a minute please
<3> if it's more than 1 line, paste it to the paste site in the topic
<5> I think i need to link another library or something like that, buuut i dont know which, because it's my first time with Xerces, it does not find a function
<5> not, it's just one line...
<5> *no, it's just one line...
<3> did you try searching for the function's name to find out what it is and what library it belongs to?
<5> [Linker error] undefined reference to `_imp___ZN11xercesc_2_76XMLUni22fgXercescDefaultLo caleE'
<3> looks like it's related to xerces
<5> yes... it's related to xerces...
<5> but i didnt find which libraries i should link, so i linked the only one i found in the package
<5> the oficial site doesnot say how many libraries i must link... =/
<5> xerces-c_2.lib it's the name of the library i linked



<3> did you compile the library yourself?
<3> what compiler/platform are you working with
<5> no, i downloaded the compiled version from the oficial site
<5> well, my compiler, it's another problem... I'm new in c++ and i'm working with DevC++, do you know? It's an ide for g++
<3> yes
<3> you might need to recompile the library
<3> it looks like the binary on their website was compiled against VC6
<5> yes...
<3> you may also consider using VC++2005 express (its free)
<5> xerces-c_2_7_0-windows_2000-msvc_60.zip ---> I downloaded this binary, it's copiled againt VC6
<3> yeah, incompatibilities may be your trouble
<5> i've VC++2005, but i dont like dot net, framework it's so big (20mb), and my aplication's users dont have it...
<3> vc++2005 is perfectly capable of building pure native non-managed applications
<3> it doesn't build .net executables unless you want it to
<5> incompatibilities? ... so? I've to build myself the library?
<3> I would
<3> vc6 is a little ancient
<5> So i've to build the library with VC++2005 (C++ pure vertion), and then it may work ?
<3> yes, it may
<5> okay
<3> tinyxml is another xml parser, depending on what kind of functionality you need
<3> xerces is a little more heavyweight
<5> tinyxml? i'm googling
<5> well, i really need to parse an xml file to get configuration values
<5> i've an structure, and i've to asing with the values taken by the parser
<5> well rdragon
<5> thanks you very much :d
<5> i'll try with tinyxml, it seems to be ok for me
<7> so how is schildt's book on C++?
<3> never heard of it
<3> http://www.rudbek.com/books.html
<5> Schildt's ?
<7> "The Complete Reference, C++"
<7> Osborne Press
<5> I like Thinking in C++
<5> http://portal.acm.org/dl.cfm | http://citeseer.ist.psu.edu/
<5> where are you from?
<5> I mean, which lenguage do you speak ?
<2> Isn't it that `Shildt` whose books were blacklisted at accu.org?
<7> melfar: I dunno
<5> if we're talking about herbert Shildt, i think his books has not a good popularity :p
<7> LuiGGi: they're popular enough, just not always, like, good
<7> but the C++ ref (http://books.mcgraw-hill.com/getbook.php?isbn=0072226803&template=osborne) seemed okay at first glance, and I mostly need a refresher and a challenge
<7> stroustrup avoids the STL, and I need references
<3> http://www.rudbek.com/books.html
<7> rdragon: I know, I know :)
<7> yet I'm too impatient to order books, and the local dives don't have Accellerated C++
<7> (border's, barnes & noble)
<3> b&n doesn't have it?
<3> they should at least have josuttis' book
<7> no, neither border's - border's being far superior to B&N in most cases that I've seen
<5> eitel and eitel ?
<8> JBlitzen, have you seen the razzamatazz bf2 video?
<5> hey jottinger
<5> in the university here, people reads "Deitel & Deitel - Cmo programar en C++"
<5> the name is somethink like "How programme in C++" or maybe "Programming in c++"
<5> 1376 pages :P
<3> accelerated c++ is 200 or 300-something, i think
<3> number of pages means little
<5> http://www.cuspide.com/detalle_libro.php/9702602548 30 u$s
<7> LuiGGi: I haven't been impressed with Deitel and Deitel much
<5> oki
<5> hey, what about wxWidgets ?
<9> hi, how can i convert epoch time to a regular date time string?
<1> not sure what you mean by "regular date time string"
<9> yyyy-mm-dd hh:mm:ss
<9> from epoch
<1> but www.boost.org has a reasonable date-time cl***
<1> it probably does more than you need (now) but it's worth learning, imo
<1> note: it's one of the libraries that actuallly needs to be built, it's not just header files
<9> there's no easier way? i BARELY know c++ and was actually looking for a tiny shell script or something
<1> where the **** did you get an "epoch" time if you can't program?
<9> i can program but not in c/c++ i made a few changes to programs before but that's about it
<1> so where did you get the time from?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#linux
#linux
winetools gtkrc error unexpected gtk-alternative-button-order
MissKitten +What part of the eye continues to grow throughout a persons life ?
#london
macbath dual
#linux
#linux
'ostream' : 'friend'not permitted
#php



Home  |  disclaimer  |  contact  |  submit quotes