g++ tag

3 questions


1 answers
84 views
0
If you used a combination of C++ overloaded operators, I have a question about g++ compilation error.

During class, there was a task to implement a program that implemented complex numbers as classes and used operator overloading to spin simple tests.Among them, there was a test case where the global ...

2 years ago

1 answers
109 views
0
Undefined reference in static class member

Why do I get a compilation error in my code?And why does it work well if you convert MEMBER to int without code 1?(compiled in g++ 4.2.4)#include <vector>class Foo { public: static const int ME...

2 years ago

1 answers
101 views
0
Compiling from g++ to C++11

I want to change my C++03 compiler to C++11 compiler in Ubuntu 12.04I looked it up and it said to give the option -std=c++0x or -std=gnu++0xThere was an error on my computer.I don't know exactly how t...

2 years ago

© 2024 OneMinuteCode. All rights reserved.