C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 28th, 2003, 08:43 PM
SoulSkorpion SoulSkorpion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Perth, Western Australia
Posts: 4 SoulSkorpion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Linker errors :/

I'm not sure if this I'm posting this in the right place, but anyway...

I'm trying to learn DirectX, using code out of a "teach yourself DirectX" book, using the DirectX SDK on the CD that comes with the book (version 8. Yes, I know it's out of date, but this way I know that the code in the book is going to get exctly what it's expecting).

Anyway, I can't get one of the examples to compile. Well, technically I can get it to compile but I can't get it to link in the DirectX stuff. I've tried using MSVC++ 5 (the latest version I could get my hands on) and Bloodshed's Dev-C++.

With MSVC++, when I try to build the projet I get the single error message:

c:\DXSDK\lib\d3d8.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3b16034b

which is Greek to me. And with Dev-C++ I get:
[Linker error] undefined reference to 'Direct3DCreate8@4'

I thought maybe it had something to do with including the DirectX libraries and whatnot in the standard libraries (you know, so the files themselves don't have to be copied and manually included with the project each time) but even copying the files directly and including them didn't work. I can't decipher these error messages; can anyone else?

SoulSkorpion

[edit]I would include the code in this post, but there's quite a lot of it and I don't think the problem's in the code. If anyone really wants to see it, I will.[/edit]

Reply With Quote
  #2  
Old January 28th, 2003, 11:32 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,430 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 41 m 55 sec
Reputation Power: 784
Both messages are produced by the linkers, which indicates that the code is passing the compile stage, but could not be linked to a library correctly. From the first message, it sounds like either the d3d8.lib file might be corrupt or your disk is full. If your disk is not full, then I would check the disk for errors. Also try reinstalling the lib file to another location on the disk. Hope this helps.

Reply With Quote
  #3  
Old January 29th, 2003, 12:01 AM
SoulSkorpion SoulSkorpion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Perth, Western Australia
Posts: 4 SoulSkorpion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
*sigh* damnit. You'd think the files of the CD would be working... Oh well. I'll DL the latest SDK and see what happens. Thanks

Reply With Quote
  #4  
Old January 29th, 2003, 07:45 PM
SoulSkorpion SoulSkorpion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Perth, Western Australia
Posts: 4 SoulSkorpion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
...downloaded, tested, still not working

Reply With Quote
  #5  
Old April 18th, 2003, 08:15 PM
Nullzero Nullzero is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Anaheim, CA
Posts: 1 Nullzero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nullzero
Possible solution?

I was browsing around Google with the same error message that SoulSkorpion recieved, and this forum post was at the top of the hit list...

Anyway, I found another site that said there is a bug in Visual C++ 5.0 that causes a lot of these linker errors unneccessarily... But Microsoft has supposedly released Service Pack to fix the problem... Here's a link:

URL

I'm downloading it now, and hopefully it fixes the problem. Good luck to anyone else out there who gets the same problem...

-----
Nullzero

Reply With Quote
  #6  
Old April 18th, 2003, 11:28 PM
SoulSkorpion SoulSkorpion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Perth, Western Australia
Posts: 4 SoulSkorpion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Completely forgot about this post

I ended up downloading the service pack to correct a different problem (I didn't know service packs existed). It seems to have corrected this problem, too.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Linker errors :/


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway