The errors that you report are not compile-time errors; they are reports of undefined external symbols from the linker.
What do you mean by "When I went to Absoft and compiled the c++ code with the cc compiler"? Are you attempting to compile a Windows GUI application source code on OSX? Are you running Parallels or a virtual Windows environment on OSX?
As far as I can see, there is no connection between the linker errors and the Absoft compiler, whether on Windows or OSX. On Windows, Absoft does not provide its own C/C++ compiler. Similarly, there is no reason why Absoft 20 would work for you when Absoft 18 would not.
Please explain in detail what you are trying to do.