Thread: Compile/Link errors...

  1. #1
    Registered User
    Join Date
    Oct 2002

    Angry Compile/Link errors...

    I've been reading The Zen Of Direct3d Game Programming and am doing an exercise for one of the chapters that simply plots 10000 random pixels in a given amount of seconds. Well... the code itself is easy enough to understand but the problem comes into view when I try to complie and link it.

    Yes I've set it up right (as far as I know)...
    DirectX include folder is at top list in directories tab/include...
    DirectX lib folder is at top list in directories tab/lib...
    Links... dxguid.lib d3d8.lib d3dx8.lib and winmm.lib have been put at the begginging of Object/library modules text box.

    When I go to Compile it these errors occur....

    c:\MSSDK\INCLUDE\d3dx8math.inl(1107) : error C2065: 'sqrtf' : undeclared identifier
    c:\MSSDK\INCLUDE\d3dx8math.inl(1107) : error C2064: term does not evaluate to a function
    c:\MSSDK\INCLUDE\d3dx8math.inl(1239) : error C2064: term does not evaluate to a function
    c:\MSSDK\INCLUDE\d3dx8math.inl(1384) : error C2064: term does not evaluate to a function
    c:\MSSDK\INCLUDE\d3dx8math.inl(1554) : error C2064: term does not evaluate to a function
    Error executing cl.exe.
    dots.exe - 5 error(s), 0 warning(s)

    Why would d3dx8math.inl... a file that comes with directx be wrong? This is why I think it's something that I'm doing wrong... I just don't understand. If someone can help with this problem it would be greatly appreciated. Thankyou.

  2. #2
    Registered User
    Join Date
    Aug 2002

    try this

    well i am no expert at the matter
    but generally when you get linking errors dealing with
    directx, for me atleast
    you having linked the proper libraries
    you do this buy going to the
    project, settings, link tab, and in the field
    full of *.lib files add whatever file you need
    depending on what you are trying to do
    example: for the 3d function(intializing hardware ect.
    you should link the d3d.lib file(i think that is right can't
    remember to tired, but either way try that hope it helps)

  3. #3
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    I normally see "term does not evaluate to a function" errors when I've forgotton to include ( )'s. It may not have any arguments and I'll just forget to add them....

    It may also occur when you mix up your identifiers and use the same name for functions and variables, check all your identifiers.
    Couldn't think of anything interesting, cool or funny - sorry.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  2. Unknown Errors in simple program
    By neandrake in forum C++ Programming
    Replies: 16
    Last Post: 04-06-2004, 02:57 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. Help me with these errors... :-(
    By major_small in forum C++ Programming
    Replies: 6
    Last Post: 09-07-2003, 08:18 PM
  5. Compile/Link errors...
    By Xenent in forum C++ Programming
    Replies: 2
    Last Post: 10-21-2002, 04:13 PM