For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
I would like to be able to download all version of java since it exists, including versions for all operating systems and early accesses, even java 1.0
This question really belongs in the Solaris Studio C/C++/Fortran Compilers forum:
https://community.oracle.com/community/server_%26_storage_systems/systems-development-and-management-tools/application_d…
You don't show how you are building your program, and you don't say which version of Studio you are using, or the platform you are using. All of this data is important to understand your issue.
You are mixing binary code created by the Studio C++ compiler with code built with g++. That will work only under these conditions:
- You must use the -compat=g option with Studio C++ on every CC command, compiling and linking. (If you are using Studio 12.4, you can use -std=c++03 or -std=c++11 instead.)
- The g++ compiler must be compatible with the version expected by the Studio C++ compiler, which depends on the Studio version.
- Only shared libraries (.so files) created by g++ can be linked, not .o or .a files.
- The compiler (CC or g++) that builds the main program must be used to link the final program.
If you meet all these conditions and the code still fails, please show
- the Studio version (run the command "CC -V"),
- the g++ version (run "g++ -v"),
- the platform (operating system and version, and whether it is Sparc or x86), and
- show how you build the program.