简体   繁体   中英

Linking SDL project in Eclipse

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.

I found that link where people try to link the same thing as you. It might help you, in their case the solution was there .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM