Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
(maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
This is what I get in Eclipse. Tried to link with -lSDLmain, have SDL.h and SDL_image.h files included, used main with arguments - int main(int argc, char ** argv)
, but it does not want to link. Please, help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.