Results 1 to 3 of 3

Thread: Error in compiling my first program

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Squire
    Join Date
    Mar 2007
    Posts
    23

    Default Error in compiling my first program

    Hi!
    When I compile this error appears :

    Linking...
    LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
    clanDisplay-static-mt.lib(display_window_win32.obj) : error LNK2001: unresolved external symbol _CLSID_DirectInput8
    clanDisplay-static-mt.lib(display_window_win32.obj) : error LNK2001: unresolved external symbol _IID_IDirectInput8A

    Can someone help me?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    If you take a look at Clanlib/display.h, you'll see it does this:

    Code:
    #pragma comment(lib, "winmm.lib")
    #pragma comment(lib, "dinput.lib")
    #pragma comment(lib, "dxguid.lib")
    It's trying to link to dinput.lib and dxguid.lib behind the scenes, you'll need to get the DirectX SDK 8 or newer and add its directory that has these files to VC's library include path.

    Setting up can be a hassle but you'll get there.

    I recommend compiling everything yourself from SVN instead of using the downloadable libaries, as bugs ave been fixed since. Guess we need to release a 8.1 at some point.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Squire
    Join Date
    Mar 2007
    Posts
    23

    Default

    Thanks so much, you have resolved my problem. I had to include library path.

Similar Threads

  1. Error in compiling Examples
    By Nikitto46 in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 10-16-2007, 02:07 PM
  2. compiling (kdevelop) lib files missing?
    By cpury in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-27-2007, 01:35 PM
  3. error compiling 0.9 svn
    By voudras in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 01-11-2007, 06:47 AM
  4. Problems with Skeleton Program
    By SFX in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-12-2006, 01:36 AM
  5. Installer program
    By in forum RTsoft Tavern
    Replies: 4
    Last Post: 08-02-2005, 10:37 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
  •