Hi, I am fairly new to the AIX world. I am trying to compile a set of C++ classes as a shared library on AIX. The C++ class methods use some functions, which are C functions. Hence, I should be using 'extern C' directive. I can succesfully compile the code on Windows, but on AIX, I get an error syaing that the extern is unnecessary. The file extension is .cpp, but I have specified an rule, which will treat it as a C++ file. Is there some flag, which will allow me to get rid of this nagging error.
Jan 4, 2018 - I am installing apache httpd 2.4.x on AIX 7.1 machine using xlc compiler. Make is successful. But make install is failing with the following error.
The seond part of the question is, how to make shared libraries .so on AIX. It will be great if I can get a lead over here. Thanks and Regards Shayad
Vathsan, Another thing that you may want to do is that if you find the 5.0 compiler is to get it installed in the default location (/var/vac/* C or /var/vacpp/* C++) and then once that 5.0 compiler is installed you can install the 6.0 compiler in a what is called a nondefault location that you choose. If I remember correctly the 6.0 should have that fileset included what you can do is check you compiler cd at 6.0 for the fileset of vac.ndi and vacpp.ndi which are for both C and C++ so that you will be able to have it installed in lets say /var/vacpp6.0/. That path of /var/vacpp6.0 would be recommended that you create a filesystem with that name and then do the nondefault install to that FS for the v 9 compiler I created a 50 mb FS for just the C compiler for the C++ compiler you will have to have I think about 100 mb FS since it has its own C++ libs and runtimes that it has to have at certian levels. I have the versions of 8, 9 and 10 installed on my aix 5.3 system in the paths which are filesystems that I named /var/vac8.0, /var/vac9.0, and /var/vac10.0 I only use the C compiler since I don't do any of my coding in C++ so you can use any path names/ FS names that you want. Hopes this helps.