I found the solution to this. The CMakeLists.txt file of the library was false. The c++ files and .h files were saved under the same CMake variable name.
------------------------------
Cristian Cucu
------------------------------
Original Message:
Sent: Fri April 21, 2023 11:46 AM
From: Cristian Cucu
Subject: CMake compilation of AIX 7.1
Indeed the type of the .a file is archive (Big Format). The C++/C project is compiled entirely with cmake. I am not sure whether cmake uses libtools or not.
------------------------------
Cristian Cucu
Original Message:
Sent: Fri April 21, 2023 10:18 AM
From: Ayappan P
Subject: CMake compilation of AIX 7.1
Generally you get an error like this if collect2 gets a file other than a XCOFF file , probably an archive file or libtool file ?
Does the project use libtool internally ?
------------------------------
Ayappan P
Original Message:
Sent: Fri April 21, 2023 09:57 AM
From: Cristian Cucu
Subject: CMake compilation of AIX 7.1
I am compiling a project on AIX 7.1 with cmake 3.16 and I get the following error:
collect2: fatal error libxxxx not a COFF file
I am using gcc 8.3.
Can anyone please give me a hint ?
------------------------------
Cristian Cucu
------------------------------
#AIXOpenSource