@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> could somone help me with this code please? http://www.nomorepasting.com/paste.php?pasteID=60095
<1> It's nonsense.
<0> ?
<2> lol
<1> rhw, Yeah, I was going to explain why, but then decided not to bother. I've been trying to encourage dr_binks to learn how to implement a simple strcpy function in C. I think when he understands how to do that, he'll be better off.
<0> by "implement a simple strcpy function in C", you mean write my own?
<0> as in write my own strcpy function
<1> Yes.
<3> was wondering if someone can give me a helping hand with compiling some code.
<0> I dont understand whats wrong with the built-in one... I thought you was encouraging me to use that yesterday
<3> I have an emulator i want to compile, as far as I know the source is 100% complete yet it throws about 6000 errors when I compile it. Says files are missing when they clearly are not.
<1> dr_binks: I didn't mean to encourage you to use something you don't understand. From the way you're comparing pointers in that function (What do you think != "(null)" does?), and are iterating over the string using strstr when just calling strrchr (find last instance of char), I can tell that you neither learned how pointers work, nor that you should check for appropriate functions before hacking your own (badly).
<0> ok, ill go do some research then
<3> anyone live?
<1> We died years ago.
<1> It was one of the great untold tragedies of our time.



<3> yea i thought so :0
<3> for some reason this source code wont compile, thinks all the header files are missing but they are there...any ideas?
<1> Not without more information.
<3> just started using dev-c++ today, ive imported all the files as a new project, yet the main.c starts out ok until it needs to link the headers which are in seperate folders
<1> Do you mean link?
<3> then all hell breaks loose
<4> caseh: how's about you provide the actual compiler and linker output..
<4> (in a pastebin)
<3> i think so, im not too hot on programming terminology
<3> hang on
<3> ill recreate the whole project from scratch so gimme 2 mins
<5> David, you remember Steve (or Emma) right?
<1> caseh, if you're taking someone else's source and recreating the project from scratch, I won't help; you should just try to compile their make files. At least understand the build process before you create your own.
<3> there are no make files :/
<3> im just trying to figure out how you actually compile source code to make an executionable from it
<1> There are no makefiles? I find that hard to believe.
<3> do you want the file?
<3> its taken straight from source forge
<3> i think
<3> http://www.dcn.ne.jp/~otim2/nesterj/bin/nesterj_0_51_05_src.tar.bz2 < ok its not from sourceforge, but thats the authors homepage
<1> Ah. It has a VC6 project file.
<1> I suggest you download Visual C++ 2005 Express Edition (which is free) and use that.
<3> will that work do you think?
<1> Actually, no, because the code uses ostream.h, which is legacy crap.
<3> hmmm i didnt see that anywhere
<3> basically just after it starts compiling with dev C++ it comes up with this error: 26 C:\SRC\NES\NES.h types.h: No such file or directory. < the files does exist tho
<1> ...but it's in the parent directory.
<1> You'll need to specify the parent directory as one to search for include files.
<3> ive tried moving it, doesnt change anything
<1> Moving it is a stupid idea.
<3> trial and error
<3> just to see if it would compile past that point
<1> Well, that'll just mean that files it includes can't be found.
<1> I have no idea how Dev C++ works. At a command line, you'd probably specify -I..
<3> well i did try compiling with the exact same structure as it unzipped into
<1> You should do that, but you also need to specify additional include paths in your project settings.
<1> If you move files, you'll only create more problems for yourself.
<3> it was just a one off, when it didnt work i simply undone the change
<3> aww man, this visual c++ 2005 won't download
<3> this is why im starting to despise computers!
<1> Don't bother; it'll be more work making that pile of crap compile with that than it would be to specify a few directories.
<3> specify a few directories?
<3> u mean within the source or ide?
<1> In the IDE :p
<1> If you modify the source or move it to fix errors about the location of files, you're doing something wrong.
<2> Doesn't it have a damn makefile?
<2> A .sln at least?
<3> nah sadly
<2> Pile of crap.
<1> It has a VC6 project file, but the source is too old to compile under recent versions of VC.
<2> Good luck :p
<2> Well, it's a place to start.
<3> hmph, frustrating to say the least. i must have looked at around 30 emulators and this is the only one that seems relatively simple with alf decent documentation
<3> typical!
<6> 95%+ CPU useage since 1am last night (EST); no more than 4MB used at any given moment; then boom STL memory leak
<6> 2.45GB RAM, crash
<6> winxp sp2, msvc 8
<6> i am thinking some casts to the first element of the STL vector are getting funked with somehow
<6> or even b8r, WRITE MY OWN VECTOR template cl***? SURE!



<1> I'm betting that you've accidently ***umed that a vector isn't empty, when it is.
<6> well, "for( unsigned t=1; t<H.size(); ++t ) { ... }"; t pushes onto it and is never less than 1
<6> but i AM puishing one symbol, popping a symbol, pushing a diff symbol, popping it off, etc; there is always at least one element in the vector (should be)
<1> Well, I don't think there are any bugs in their vector.
<1> It's actually the easiest to debug of any I've used.
<7> how about posting a simple test case that demonstrates the problem, Parlous?
<6> ya, the debugger in 2005 is awesome
<6> well, so far the only way to duplicate the problem has been to let it run for hours; the other compressors along the way (cause it does the same thing like 20 times for diff data compressor types) work fine
<6> then poof; ran same thing twice; messed up on diff data comps
<6> it may be the libs i'm using too; i'll write my own and test it
<6> if u need copy constructor and ***ignment operator, can u just define ***ignment op and then something like: "CoreArray( const T& o ) { (*this) = o; };" for copy constructor?
<6> i think that is ok
<3> what is the exact purpose of a header?
<6> header : to define symbols and references to source code external to the current c/cpp/etc file (which ultimately becomes an obj file) which is ultimately source code located in another obj/lib/dll/etc
<6> header locations utilize POSIX or some other path-file location specification for including them in your source
<6> ie - #include "../../myfileacouplefoldersup.h" and #include <stdio.h> etc
<6> make sense?
<3> access to library function yes?
<3> hmmm this source code is weird
<8> header files allow you to put declarations in a common place so that you can easily make them accessible to all pieces of code without violating the one-definition rule or requiring lots of storage and complicated management to deal with declarations the compiler has not reached yet
<3> scalar: is that like making a method public in java? sorry only example i can think of :)
<8> no
<8> in Java or C#, you can work with cl***es or methods that the compiler hasn't reached yet. it will simply "remember" that it will have to check that the method calls are ok
<3> guh, what reasons should i be looking into why this code won't link files outside of the main directory
<3> sorry to be a pain in the *** :/
<8> in C or C++, you have to declare a function before you can use it, that way the compiler doesn't have to remember as much
<8> linking has nothing to do with header files
<3> so why does this compiler think the files dont exist when they are simply in another directory
<6> well, header files implies the potential of other items to link to for successful build
<6> the symbols in the header files will match up to symbol definitions of the stuff u prolly want 2 link 2
<6> 32bit has a diff symbol naming convention than 64bit, for example on most compiler/linkers
<6> so, if the header files match what u are linking to (ultimately) then the linker simply needs to know where the lib files are
<6> or explicitly state each lib/obj/dll/whatever file
<6> caseh, what r u compiling/linking/building with?
<3> dev c++
<6> alright, if u really wanna be able to tackle problems, u need to learn to be more specific to yourself; what specific version?
<3> im just not understanding why its not seeing this header file thats down 1 dir from the source im compiling
<3> dev c++ 4.9.9.2
<6> ok, do you know what MSVCRT.DLL is?
<3> nah
<3> downloading it now
<6> alright; caseh, you need to go read more about the development environment you've choosen to utilize; if you are having linking problems, and all stuff from this environment requires that DLL, that is a good place to check first
<3> thanks :)
<6> patience and rigorous research is helpful, always in this game ;)
<3> patience is something i seriously lack :D
<6> why are choosing to code?
<6> cl*** req'd?
<3> cl*** req'd
<3> ?
<6> ya, are you in school?
<6> why do u need to build this program u want?
<3> studying for a degree, this is just something ive been meaning to look into for years
<6> i c; so u understand some java stuff?
<3> i want to rip a nes emulator apart and find out how it all works
<6> i c; do u know the difference between vector and raster graphics?
<3> yea, ive done 3 years of java :o
<6> ah, ok
<3> vector = 3d?
<3> raster 2d?
<6> sure
<1> Er?
<3> wasnt 100 percent sure about that, think i done vecotrs in math last year
<6> vector means collections of points in some n-dimensional space (memory) and raster means a quantized sampling of data (typically orthogonal data)
<3> or was it matrices
<3> muh
<1> The representation has nothing to do with the number of dimensions.
<6> true; a vector of 100 elements is sometimes referred to as 100-dimensional
<6> its funny how different people say this or that, but all its just a d*mn array of bytes, lol
<1> No it isn't.
<6> sure it is
<6> what defines dimension then?
<6> we gonna get metaphysical here?
<6> who is gonna handle our exceptions?


Name:

Comments:

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






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

pkistan chat
#worldchat
#allnitecafe
#india
#india
#india
sex hgyt
phpmyadmin information_schema hide
bloody kleenex
#linux



Home  |  disclaimer  |  contact  |  submit quotes