directX linking problem

This is a discussion on directX linking problem within the Game Programming forums, part of the General Programming Boards category; Hi! I'm having major trouble linking a small verry basic (my first) directx windows program. The program compiles fine but ...

  1. #1
    Anders Sundman
    Guest

    Question directX linking problem

    Hi!

    I'm having major trouble linking a small verry basic (my first) directx windows program.

    The program compiles fine but when I try to link in a directX .lib-file things just won't work. I'm using several funcioncalls to various directx functions from d3d8.h but the linker only complains about one: "Direct3DCreate8" (possibly because it's the first?) I get: "Unresolved external Direct3DCreate8 referenced from my.obj file".
    It seems to me that the d3d8.lib file (that is suposed to include this function) doesn't get linked in as it should?

    I'm writing the program in Bordland 5.01 IDE using directX 8.1 sdk. Perhaps this is a compiler specific question and shouldn't be posted here but who am I to know?
    I would realy need some help..

    /Anders

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    somewhere in Borland (i cant remember where), there is a list of libs included. Make sure to add the DX libs to that list. Its not just in the same spot as MSVC's list...i dunno where it is...it might be in the project window....

    This error can also happen sometimes if you are compiling new code, but the compiler feels like being stupid and using old .obj files.....i hate it when that happens...but since ur compiling for the 1st time that shouldnt be a problem.
    My Website

    "Circular logic is good because it is."

  3. #3
    Anders
    Guest
    Thanx for the reply, but it seemed I was trying to use MS libraries on my Borland compiler.. But I have fixed it now and it's running like a dream..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking problem - undefined reference to load_parameters
    By michaels-r in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2006, 08:28 AM
  2. directx problem with camera , nothing happens
    By Anddos in forum Game Programming
    Replies: 1
    Last Post: 04-10-2006, 03:14 AM
  3. help solve linking problem, thanks
    By Raison in forum Windows Programming
    Replies: 8
    Last Post: 05-29-2004, 11:14 AM
  4. Long file linking problem
    By hypertension in forum C Programming
    Replies: 3
    Last Post: 10-15-2002, 09:55 PM
  5. Linking problem...
    By BrianK in forum C++ Programming
    Replies: 2
    Last Post: 10-08-2002, 04:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21