Friday, July 31, 2009

Help- stuck with using a C compiler??!!?

I've got a project due in at college, and i don't know anything about using a C compiler!! It's on finding codes in texts, i'm trying to use the program on the panin.c link at http://cs.anu.edu.au/~bdm/dilugim/panin.... I've tried downloading Microsoft C++ Visual Basic and Miracle C but it keeps coming up with errors msgs.... could someone try the program out/ tell me where i'm going wrong? I want the program to work on a file containing text so I can find Panin's patterns....?

Help- stuck with using a C compiler??!!?
That web page specifically says that the program is for linux/unix and is known to compile ok with gcc.





Maybe the program is relatively easy to port to windows but you don't seem to have the experience to do it. So your options seem to be:





(1) use someone's linux machine - a friend, perhaps





(2) install cygwin on windows. Among the things you can download with it is the gcc compiler. It isn't that hard and you should be able to compile the program.
Reply:Welcome to the wonderful world of programming. I've got news for you, if you stick with this field, you better get used to seeing errors, it just comes with the territory. What you should do is, when you see an error, look for a solution rather than going online and asking someone. You'll learn to be self-reliant and you'll learn how to fix these errors yourself. If the compiler is Unix-based, it probably has man pages, so lookup the errors in there and figure out how to fix them, or consult the compiler's documentation.
Reply:No way can you expect a programming course in C++ from Y7A! Taking an existing C program and porting it to a different compiler can be trivial or it can be close to impossible. You need experience in C/C++ to be able to do that. If you are serious with using c/C++ I would advice that you get a C++ for Dummy handbook and start getting experience. Than you will also be able to the the needed conversions.


No comments:

Post a Comment