Jump to content

CYGWIN Help


Addictgamer
 Share

Recommended Posts

  • 1 month later...

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

Addictgamer

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

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.