@# 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 11 12



Comments:

<0> chrLower isn't standard C++
<1> ok Cowmoo: i did that and now i think i still get same error
<1> test.cpp: In function `int main()':
<1> test.cpp:36: error: no matching function for call to `transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
<0> hint: <unknown type>
<1> is that hint for me? cuz i have no idea 'bout anything
<2> aAron, hmmmm
<1> no one?
<2> nope
<2> I've got nothing :(
<1> does anyone else get same error when compiling with g++?
<2> aAron, nope, All my C++ programs compile :)
<1> i meant when compiling MYY program
<3> for def files..how do you put a method name of a cl*** under EXPORTS?
<4> vidkid: come on... http://www.google.com/search?q=def+file+EXPORTS
<3> im googling but it doesn't really say what to do for that.. sry!



<4> uh
<4> did you look at the second result ?
<3> actually yeah
<3> doesn't explicitly mention if its different for methods..
<4> what do you mean 'methods' ?
<4> cl*** member functions?
<3> yeah
<4> i'm pretty sure if you export the cl***, all of that goes with it
<3> how do you 'export a cl***'?
<4> look up __declspec(dllexport)
<3> i think that way you don't need def file, is that right?
<4> i believe that's correct
<3> what if i want to use def file?
<4> "You can export data, functions, cl***es, or cl*** member functions from a DLL by using the __declspec(dllexport) keyword. If you use __declspec(dllexport), you do not need a .DEF file for exports."
<4> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_exports.asp
<5> using a .def has an interesting advantage though
<4> the preferred method is __declspec(dllexport), followed by the EXPORTS section of a .DEF file
<3> i don't want to have __declspec(dllexport) all over the place in my source code
<4> did you try just putting the cl*** name under the EXPORTS section?
<3> no actually i havn't tried anything yet.. i thought maybe asking you guys was faster ;)..
<6> Is there anyone around to help a rookie w/ an installer ?
<6> I am just in dire need for an installer of an application of mine, but i'm a bit confused, haven't started yet cause i don't know from where to begin, any thoughts ?
<6> for an application*
<7> sigh
<7> that's what i get for opening the office door
<7> a cat charged in full speed and jumping in my lap
<4> ...heh
<4> I think there's tools in visual studio that create windows installers, whitewabbit
<7> "this is my big chance!"
<6> rdragon, visual studio is for windows, correct ?
<3> a cat huh? maybe next time it'll be something bigger
<6> i need something in linux, i can use a scripting language as well for such a thing ?
<4> whitewabbit - yes, so are windows installers ;)
<6> Say, perl/ruby for example ?
<4> can't help ya there, sorry
<6> rdragon, there are linux installers as well, ones from loki.
<6> oh, okay
<6> thanks anyway
<6> at least
<0> aAron: you still can't compile it?
<8> hi, - very beginner question here: http://pastebin.com/526743
<6> can you tell me the skeptic of it ?
<6> cause i'm blocked, can't how i'm supposed to start coding.
<6> can't how|don't know
<6> it's like the Makefiles ?
<6> i have to know first hand what goes and where, correct ?
<6> anyway, i'll find a way to do it, thanks.
<0> wow, I finally found why it thinks that std is a cl***.
<0> It's cause it's parsing: std::fpos<_StateT>::operator std::streamoff() const
<0> for some reason it thinks that std is a type... weird. It should think that std::streamoff is a type.
<0> Oh!
<0> hmm
<0> *still confused*
<8> when i do a regular cin everyting works fine, but when i use getline it require both inputs in a row..
<0> time to debug the parser :/
<0> Nickziws: try adding << std::flush after you questions.
<8> does not make any difference..
<0> That is impossible.
<0> If you flush the output, it must be written before you get the new getline
<0> hmm, my parser thinks:
<0> RETURN TYPE : std::fpos<_StateT>::operator



<0> CL*** OR NAMESPACE : std::
<0> FUNCTION NAME : streamoff
<0> That looks correct ... except that 'operator' cannot BE a type.
<0> That means I have to test every identifier to make sure it isn't "operator" :/
<0> hmm... or test for operator first...
<0> no, can't do that.
<4> are you parsing C++ ?
<0> yes
<4> yeah, you're on your own with that one ;)
<4> well, operator is a keyword, isn't it
<4> and C++ says that if something can be parsed as a function, it will be
<8> well, as of code: http://pastebin.com/526743 - i tried to add <<std::flush after cout << "What's your name? "; like this: cout << "What's your name? "<<std::flush; , but that did not make any difference - and i find it a bit strange to put it there... should have been after getline (cin, mystr); if anywhere, but get error when it's on single line.
<4> Nickziws what compiler?
<8> MS Visual
<4> sigh... what version?
<8> ehm 6
<4> I don't get the behavior you've shown in vc8
<4> with the exact same code
<4> vc6 is ancient technology and shouldn't be used, especially not for new code
<0> Nickziws: you are being stupid, I said to flush both questions, flushing the first makes OBVIOUSLY no differnce as there wasn't a problem to begin with
<8> well - i'm only online with my cellular at the moment - and therefor have not taken the time to download any new compilers
<0> cout << "What is your favorite team? " << std::flush;
<4> Nickziws the only reason you might want to put flush 'after getline if anywhere' is if you really didn't have any idea what it's purpose was
<8> Run: well i flushed both... but simlified my responce
<4> either way, get a real compiler first
<8> well,.. i ordered DSL 29 of november 05 , .. and they still have not delivered,.. as i said i'm only online with my cellular - and downloading becomes a bit ..
<4> so you've got vc6 on your cellphone?
<8> yes
<8> no - i had it on an old cd
<4> so what's the problem then?
<8> to get an other compiler
<4> well, that's the solution
<8> yes, but the solutions is also part of the problem
<4> no - whenever you get back to your computer, get a real compiler. end of story
<8> i'm at my computer - but i have not got the skills to write my own c++ compiler, so therefor i should have had to download, - but when i'm on the internett using my cellphone as a modem i is a bit slow u know (14kbps)
<4> okay, then just get a real compiler... however you do it, really doesn't matter to me
<8> so an other part of the answer is that cv6 does not treat getline in the same way as newer standards?
<9> wooo!
<9> I think my laptop is finally fixed for more than a day.
<9> damned power supply.
<4> Nickziws vc6 can hardly be called a C++ compiler, since it was released pre-standard
<0> as if microcrap ever makes anything that can be called standard.
<8> oki - didn't know. A bit new to the game (surprise)
<8> well - anyone know of a small cpp compiler then? - smallest there is.. (that i might be able to download)
<0> Nickziws: nothing you want to download over 14 kb. Get your *** to home or whereever you have real internet.
<8> not 14 kb. 14 kbps
<0> that too
<8> :P
<8> kno
<8> w
<0> I wish my compiler just generated missing functions instead of complaining about them being missing :/
<0> Stupid compiler.
<10> it'd be interesting/neat if the compiler pre-generated COM-cl*** functions
<10> and maybe.. if it pre-inserted MSDN help telling you what they should return..
<10> hmm. :)
<0> well, I was half serious... it could generate the declaration, make a file if needed etc, lots of things could be automated. And then drop me in an editor to implement it.
<10> indeed.
<0> (this happens to be my method of coding: I write code ***uming things already work/exist... until I can't remember it anymore. Then I start compiling and solve compile errors. When a function is needed, I write an implementation using the same techniq. The result is that it works, after getting through a LOT of compiler errors.)
<8> well.. guess i reboot to fedora and start the learning my c there instead
<0> fedora likely DOES have a standard C++ conforming compiler installed.
<8> have installed the development tools..
<11> Mmmmm
<11> I love gcc.
<0> gcc is ok ... g++ is just ****ing slow, and the compiler errors have degraded a LOT too :/
<0> but well, their first priority was to get it standard conforming.. I suppose they work on speed now :/ hopefully.
<0> Still could use a ten times faster pc
<12> ever tried distcc?
<13> g++ is slow because of templates
<0> Why does that need to be this slow?
<13> template code needs to be recompiled each time
<13> templates are like preprocessor on steroids, very primitive
<14> asked this in #C#, but someone in here may be able to help also:
<14> ok I want to be able to write implement mysql functionality in a c# program, but I want to be able to port it to mono with a minimum of fuss
<14> too specialised? dang


Name:

Comments:

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






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

sess bl addocc
#teens
first animal named to animal hall of fame 1969
zejza barra
#php
bona serra
transparent xfterm
#php
network connection refuse putty
connection died4.4.2 qmail



Home  |  disclaimer  |  contact  |  submit quotes