Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2070
Number of posts: 5361

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
DirectX and BC45 Posted by paulanz on 31 Mar 2000 at 8:04 AM
Can anybody help with a DirectX related problem im having in Borland c++ 4.5<br>
<br>
i have a win32 directx programme setup as follows: include directories are set to "c:\bc45\include; c:\mssdk\include", library directories are set to "c:\bc45\lib; c:\mssdk\lib\borland".<br>
<br>
i placed the following code at the start of my programme as i read somewhere it was necessary:<br>
<br>
#if defined(__BORLANDC__) && defined(__WIN32__)<br>
#define _WIN32<br>
#endif<br>
<br>
i also have the following includes:<br>
<br>
#include <windows.h><br>
#include <windowsx.h><br>
#include <ddraw.h><br>
<br>
the programme compiles find but i keep getting this linker error:<br>
<br>
"Linker Error: Unresolved external 'DirectDrawCreate' referenced from module 'prog1.cpp'"<br>
<br>
****<br>
<br>
i thought this was down to the fact that i had not directed my project to the ddraw.lib file. so i added a lib node to my project pointing to 'c:\mssdk\lib\ddraw.lib'<br>
<br>
after compiling i get this linker error:<br>
<br>
"Linker Fatal: Bad object file 'c:\mssdk.....' near file offset 0"<br>
<br>
does anybody know why this is happening?<br>
any help would be appreciated<br>
<br>
thanks<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.