![]() |
|
#1
|
|||
|
|||
Error C2374I don't have very much experience at all in C++.
I am using c++ Visual Studio 6.0. I have this source code and when I try to compile it I get 42 errors and 20 warnings, could someone here fix them for me or help me fix them so that it will compile successfully? Thanks a lot! Here is the file, rapidshare.com Here is the error log: Code:
|
|||
|
#2
|
|||
|
|||
Re: Need help compiling thisQuote:
|
|
#3
|
|||
|
|||
Re: Need help compiling thisOh here is the source, it got filtered somehow
rapidshare.c0m/files/117510265/WtfTPPfK.zip.html change the 0 to a o |
|
#4
|
|||
|
|||
Re: Need help compiling thisQuote:
Speaking only for myself, I will flatly say that I have no intention of going to a questionable site and downloading a questionable zip file and trying to debug your program for you. Sorry. Maybe someone else is a little more adventuresome... Now, if you are not familiar with C++ and you are using an old, buggy compiler like Visual C++ version 6, and you are having problems, I don't know whether anyone can really help. However... I know for a fact that programs like the following give the "multiple initialization" error with Visual C++ version 6. Try it on your system: CPP / C++ / C Code:
This is Standard C++, and should give an output that looks like: Code:
Later versions of Microsoft compilers have no problems with this code. Recent Borland compilers (I don't know and don't care about Turbo C versions 1, 2, or 3) have no problems with this. GNU compilers have no problems with this. Bottom line: If you are a little familiar with C++, then it shouldn't be difficult to modify the source so that variables are all declared at the beginning of a block (beginning of a function for example, like we did in C programs before the '99 standard). If you aren't even that familiar with C++, then I think you might be better off learning on simple programs before tackling this project. I, personally, would favor downloading a current compiler. Free ones are available from Microsoft, Borland, and GNU. Anyhow, after you resolve the multiple definitions, there still may be some other problems. You won't know until you get past the ones that I told you about. Sometimes fixing one type of problem fixes other messages as well. If you aren't even familiar enough with C++ to go through and collect variable declarations at the beginning of each function, I'm not sure that trying to compile OPC (Other People's Code) is the best and most efficient learning experience, but I wish you luck. Regards, Dave |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling a program with gcc | dabigmooish | C++ Forum | 3 | 26-Sep-2007 11:15 |
| basic question regarding compiling a program | cornsnap | C++ Forum | 24 | 16-May-2007 15:08 |
| getting an error while compiling and running using different IDE. | jaro | C Programming Language | 0 | 25-Aug-2006 10:14 |
| Compiling Help | gh0st16 | C++ Forum | 1 | 22-Jan-2005 07:45 |
| Compiling error when doing SQL database in C++ | confused_pig | C++ Forum | 2 | 12-Jan-2005 22:08 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The