We have installed GCC and libgcc on AIX.
I am busy compiling a C library on the machine and keep getting the following error:
Undefined symbol: .main
Any idea how to solve this?
Thanks for the help
Lynton
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are most likely using the wrong gcc arguments – probably you are using the same ones you’d use for an executable program (where
main()is required). The correct arguments depend on what kind of library you want to build (a static one or a dynamic (.so) one)