We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I'm trying to compile a C app as C++, but it doesn't run. I looked at the .s files, and one difference with the C++ compilation is the line:
IMPORT ||Lib$$Request$$cpplib|| [CODE,WEAK]
Maybe this is the problem (or, one of the problems.)
Is there a way of preventing the compiler from including this library if I compile with the --cpp option?
It's possible to want to use references, classes, namespaces etc without wanting to use any C++ library functionality.
Some compilers/linkers manages to include quite a lot of C++ code even if the program doesn't really make use of STL, streams etc.