in my cpp file i have the following:
int A()
{
}
void B_A() __attribute__((alias ("A")));
and i am getting the error:
B_A() aliased to undefined symbol A;
however, as u can notice, A is being defined just before that.
so whats the problem!?
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.
From the docs:
So, you need the mangled name of
A, or you need to giveAC linkage so its name doesn’t get mangled in the first place.