Saturday 31 January 2009

How To Build Projects With Libraries In Dev-C++


These days when I was coding the Mp3ListPlayer in IDE Dev-C++,I found a big problem building the project.
Of course,I finally solved it.And I want to tell you how to,so you won't meet the problem I met.HEHE~

For example,your project need a library named winmm.lib,and you want to build the project in Dev-C++:
1.Open the Dev-C++ menu "Project"-"Project Options".
2.Change to Parameters page like the picture show you.
3.Choose the "Add Library or Object" button.
4.Change into dir \Dev-Cpp\lib.
5.Find a file called lib[].a(and the library name you need in [],for example libwinmm.a).
6.Apply the configuration and build the project.

Hope this post useful to you.

No comments:

Post a Comment