Archived

This topic is now archived and is closed to further replies.

Bobby K

Allegro Help

Recommended Posts

I just installed Allegro and although I dont know anything yet, I''ve been trying to compile and run the example files, and it does not work. Actually, when I open, say, ex1.c from the example folder, it compiles fine, but when I try to run it, it gives me linker errors. If I try to compile again, it can''t find ex1.c. If anyone knows what I''m doing wrong (because it''s probably something embarrasingly simple), I would appreciate any help. "You told your mother I''''d get ya home, but you didn''''t say I had no car. I saw the lion; he was standing alone, with a tadpole in a jar."

Share this post


Link to post
Share on other sites
quote:
Original post by Bobby K
it compiles fine, but when I try to run it, it gives me linker errors.


No offense, but did you link it with the Allegro libraries to produce an executable? As a beginner it took me a while to figure out multifile projects and how to use libraries. If the linker errors are mostly "unresolved external: blah blah blah", then this is your likely problem.

Share this post


Link to post
Share on other sites
No, I wasnt getting any ''unresolved external''s. Actually, I got the examples to compile fine now, but I tried to write my own file and compile it and it gave me the same errors I was getting before. I thought I might have messed up by placing the file in another folder, but I moved it to the same folder as the examples and the same thing is happening again.

"You told your mother I''''d get ya home,
but you didn''''t say I had no car.
I saw the lion; he was standing alone,
with a tadpole in a jar."

Share this post


Link to post
Share on other sites