Undefined symbols for architecture x86_64: "Rectangle::setWidth(double)", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::setLength(double)", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::getPerimeters() const", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::getArea() const", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::getWidth() const", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::isSquare() const", referenced from: _main in rectangleProgram-4857c8.o "Rectangle::getLength() const", referenced from: _main in rectangleProgram-4857c8.o ld: symbol(s) not found for architecture x86_64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c++ -std=c++2a -g -o executable program implementation |
g++ -std=c++2a -g -o executable program implementation |
g++ -std=c++17 -Wall -Wextra -pedantic rectangleProgram.cpp rectangle.cpp |
c++ -std=c++2a-Wall -Wextra -pedantic rectangleProgram.cpp rectangle.cpp error: invalid value 'c++2a-Wall' in '-std=c++2a-Wall' note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard note: use 'c++11' for 'ISO C++ 2011 with amendments' standard note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard note: use 'c++14' for 'ISO C++ 2014 with amendments' standard note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard note: use 'c++17' for 'ISO C++ 2017 with amendments' standard note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU extensions' standard note: use 'c++2a' for 'Working draft for ISO C++ 2020' standard note: use 'gnu++2a' for 'Working draft for ISO C++ 2020 with GNU extensions' standard error: invalid value 'c++2a-Wall' in '-std=c++2a-Wall' note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard note: use 'c++11' for 'ISO C++ 2011 with amendments' standard note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard note: use 'c++14' for 'ISO C++ 2014 with amendments' standard note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard note: use 'c++17' for 'ISO C++ 2017 with amendments' standard note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU extensions' standard note: use 'c++2a' for 'Working draft for ISO C++ 2020' standard |
-std=c++2a-Wall |
c++ -std=c++2a -Wall -Wextra -pedantic rectangleProgram.cpp rectangle.cpp |