Jump to content
  • Advertisement
Sign in to follow this  
tiresandplanes

Need help with a library

This topic is 1785 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

I posted this in beginners originally but I felt like it'd get answered more quickly in here.

 

I'm making my first rogue-like using this http://www.kathekonta.com/rlguide/article1.html tutorial and I am having trouble with compiling it.

 

I'm using Visual studio 2010 and whenever I try to compile the program it comes up with something like "Could not open Console.lib and I'm not sure what I am doing incorrectly. Does the .lib file go into the resources folder in a project? when is says "Static library for the Console interface:" does that mean when I make the project I should make it a static library instead of a win32 console application?

 

Edit: I basically don't know how to link my library to my project file.

 

Edit: I think....

 

Edit: I got it linked but I keep getting this error

 

1>console.lib(Win32Console.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
1>LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'

Edited by tiresandplanes

Share this post


Link to post
Share on other sites
Advertisement

First, you probably want to add the library folder in your project directory and add these in your Visual Studio project, or you could just include it from where you downloaded it to. In either case, once you’ve created a Visual Studio Project, right click on your project file in the Solution Explorer (should be at the left side of the window) and click Properties, then expand Configuration Properties, and Expand C/C++ and click on the General tab, you can then click on the right where it says Additional Include Directories and add the path for the library folder.

 

I tested it and got an error saying “cannot open file ‘LIBCD.lib’ which is apparently because Visual Studio doesn’t support that, so to fix it, go into the project’s Properties > Configuration Properties > Linker > Input and then click on Ignore Specific Default Libraries and add in LIBCD.lib.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!