Allegro on Xcode

Hello guys,
i've wrote a question before this in which i ask how to install Allegro on Xcode, but i have a problem... (I did the things that i need to do in xcode) When i add the allegro library "#include <allegro5/allegro.h>" not give me an error, but when i want to compile the code gives me two errors:

Undefined symbols for architecture i386:

"_main", referenced from: // Here give me an error

implicit entry/start for main executable
(maybe you meant: __Z16_al_mangled_mainiPPKc)
ld: symbol(s) not found for architecture i386
clang: error:

linker command failed with exit code 1 (use -v to see invocation) // and also here

someone know how to solve this?

What kind of project did you create? Was it an C++ console application? I'd be surprised if it had a i386 architecture - I'd expect it to be x86_64.

Also, did you link the allegro_main library?
Was a command line tool, but i didn't put the code of allegro in my code, i only add the library to my project... Ah, and i change the architecture to try if goes well.
Last edited on
Not sure then. Did you try running with the code sample I gave in the other post?
Last edited on
Topic archived. No new replies allowed.