Results 1 to 20 of 34

Thread: Setting up ClanLib

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Squire
    Join Date
    Sep 2010
    Posts
    16

    Default Setting up ClanLib

    I have downloaded the PreBuilt libraries from the dowload page, put them in the correct folders, but I am getting these errors:
    cannot open file '*-static-mtdll-debug.lib'
    * being anyname here (there are about 5-6)
    I just told it to ignore them, but then it says I'm missing dxguid.lib.
    what am I doing wrong?
    If I have to build my libraries from scratch, how would I do that?

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Visual Studio Options:

    (Menu) Tools --> Options
    "Projects and Solutions" --> "VC++ Directories"
    Select "Show directories for:" Library files
    Add location: C:\Users\{yourname}\Documents\lib\Win32
    (The exact location depends on where you placed the libraries)

    You also will require the DirectX SDK. (For joystick support).

  3. #3
    Squire
    Join Date
    Sep 2010
    Posts
    16

    Default

    I already did that. I don't have those libraries, they didn't come with the precompiled binaries.

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    http://clanlib.org/wiki/DownloadBinariesWin32 -->

    http://clanlib.org/download/binaries...in32-2.2.2.zip

    They are there (x64 in the other pacakge)

    I guess that you only downloaded the dependancy libraries.

  5. #5
    Squire
    Join Date
    Sep 2010
    Posts
    16

    Default

    I've already downloaded them.

  6. #6
    Master Sorcerer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    ClanLib can be built in a few different configurations. Per default it is built in the 'mt' versions, which means that ClanLib will link to the static C runtime library.

    Freshly created projects in Visual Studio default to the DLL C runtime library (the 'mtdll' version). The include headers in ClanLib automatically detects which version is being used and issues a #pragma command that instructs the linker to link with that version of ClanLib.

    You can fix your linker errors by either compiling the mtdll version of ClanLib or by changing the runtime library to the MT version in your own project.

    Regarding dxguid.lib, this is a library provided by the DirectX SDK. It is not included with Visual Studio so you will have to download and install it yourself.

Similar Threads

  1. karma setting
    By Escoutaire in forum Funeral Quest
    Replies: 6
    Last Post: 02-10-2008, 09:39 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •