Jump to content
  • Advertisement
Sign in to follow this  
Alpha_ProgDes

Can't get files to compile on Code:Blocks

This topic is 1855 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Basically I'm having a problem with getting an Allegro binding (D + Allegro) to work with Code:Blocks.
I think it's a settings problem, but I'm not sure where.
So here's what I've done so far...

 

Error: module base is in file 'allegro5\base.d' which cannot be read|
 


This is the error I keep getting. I'm using Windows 7, DAllegro5, Code:Blocks, and the D language DMD compiler.

Code:Blocks works. Compiling a regular D project works. I've added the DAllegro5 files to the project, but I keep getting this error. What else should I do to get this error to go away?

Share this post


Link to post
Share on other sites
Advertisement

I normaly get this, if the module can't be found (not added to the include directories).

I'm not used with CB or Allegro, but how did you added the DAllegro5 files to the project?

I think you have to add both the library and the include files (.d).

Just look in your settings and what you set to get DMD working and add the simmilar paths for Allegro. (in my old CB version 10.05 in Settings>Compiler and debugger>... or Project>Build Otions>... and then in ...>Linker Settings and ...>Search Paths)

Edited by Weton

Share this post


Link to post
Share on other sites

 I followed the instructions here.
 

 You have two options here. *You can copy all the modules into your project*, and just use them like that. Alternatively, you can compile the binding into a static library for convenience:



I did the bolded. Just copied the actual .d files to my project.

Edited by Alpha_ProgDes

Share this post


Link to post
Share on other sites

Then your folders should propably look like this:

-main.d | with import allegro5.base

+allegro5

  -base.d | module allegro5.base

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!