Addictgamer Posted March 12, 2010 Share Posted March 12, 2010 Is what happens when I try to compile virtual world with CYGWIN. Help please? Link to comment Share on other sites More sharing options...
admalledd Posted April 20, 2010 Share Posted April 20, 2010 i don't know about the error on line 9 with the main deceleration, but the '\r' errors are related to the new line characters. there are a couple of ways the term "new line" works in programming, so lets get down the terms for each new line type. these terms come from the age of terminals (AKA "the black box" in windows) \r is carriage return, or returns the cursor to the beginning of the line. else you would have cascading lines: that would look like this without \r at the end \n is the new line symbol where you move the cursor down one line. so, we have two symbols for a "newline" of code. thing is, the different operating systems understand and use them differently. in windows the end of line is "\r\n" or both carriage return, then new line in linux or *nix systems they use "\n" only in mac they use "\r" so from what i can see, your files are made for windows (\r\n) but you are trying to compile them using a linux ported compiler (GCC) so you need to convert them to \n, i would recommend notepad++ (google it) it has some nifty features to take care of this. also: you need to compile it using G++ not using bash. bash is the interpreter for the command line, which understands files ending in .sh Link to comment Share on other sites More sharing options...
Addictgamer Posted April 20, 2010 Author Share Posted April 20, 2010 Hmm...Thanks for explaining all this to me, although I finally got it to work in MinGW. I still wish to get it to work in cygwin though. I shall try as you advised. Link to comment Share on other sites More sharing options...
Anonymouse Posted April 21, 2010 Share Posted April 21, 2010 You're not compiling them at all, you're trying to run them in a shell. Try g++ <sourcefile>. Link to comment Share on other sites More sharing options...
Recommended Posts