Skip to main content
added 166 characters in body; edited tags; edited title
Source Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

While using Cygwin, can't provide Syntax of bash alias for gccdefinition

I'm using Cygwin, and have installed all the entire developer's packagedeveloper packages as well as most if not all of the other packages. When I provide an alias for gcc, I get the error "-bash: alias: gcc: not found.

-bash: alias: gcc: not found

What could I be doing wrong?

FyiI am typing the following command into the terminal:

alias gcc "gcc -ansi -Wall -g -O0 -Wwrite-strings -Wshadow -pedantic-errors -fstack-protector-all"

FYI, this alias works on other systems.

While using Cygwin, can't provide alias for gcc

I'm using Cygwin, and have installed the entire developer's package as well as most if not all of the other packages. When I provide an alias for gcc, I get the error "-bash: alias: gcc: not found. What could I be doing wrong?

Fyi, this alias works on other systems.

Syntax of bash alias definition

I'm using Cygwin, and have installed all the developer packages as well as most if not all of the other packages. When I provide an alias for gcc, I get the error

-bash: alias: gcc: not found

What could I be doing wrong?

I am typing the following command into the terminal:

alias gcc "gcc -ansi -Wall -g -O0 -Wwrite-strings -Wshadow -pedantic-errors -fstack-protector-all"

FYI, this alias works on other systems.

Source Link
Joel
  • 13
  • 2

While using Cygwin, can't provide alias for gcc

I'm using Cygwin, and have installed the entire developer's package as well as most if not all of the other packages. When I provide an alias for gcc, I get the error "-bash: alias: gcc: not found. What could I be doing wrong?

Fyi, this alias works on other systems.