Hi all, i'm new in Mac programming, and i have a question: is it posible to declare the main function inside a library? Because when i compile the main project, i get the error undefined symbol: _main, and i know is because is missing the int main, but i already defined it on a library.a, that lib is added to the main project, so i dont have any clue of why is causing this error.
If i define a main.m with the main function inside, i get the 2 main functions defined error, this is kind of weird.
Anybody have any clue for this?
By the way, i need the main in the library because i'm making a generic code, and need to do some specific stuff in the main
Regards
If i define a main.m with the main function inside, i get the 2 main functions defined error, this is kind of weird.
Anybody have any clue for this?
By the way, i need the main in the library because i'm making a generic code, and need to do some specific stuff in the main
Regards