AIX

 View Only

 Trouble linking C++ with a namespaced function called 'fstat'

Jack Woehr's profile image
Jack Woehr posted Wed October 30, 2024 10:50 PM

I have a function named fstat within a C++ namespace, so it won't collide. It's effectively a wrapper around the top-level C fstat. But due to the implementation of AIX large file support, it's being renamed via a preprocessor macro to fstat64. This breaks linkage on me, due to the different name. Do I have to rename my function, or can I make this work? Using gcc 12.3.0