|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered User
Join Date: Aug 2003
Posts: 4
|
Visual .NET 2003 compiling...
Can someone write a sticky on how to properly compile cxbx using Visual .NET 2003
Some helpful hints for basic compiling of the code would be nice and if I need to have the XDK installed to properly compile cxbc (which I'm sure is not needed but just asking). It would be quite helpful to some others as well I'm sure... Thanks! |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Jul 2003
Posts: 5
|
I can help you with that.
- Get the source from CVS - Make a directory where you put the sources for cxbx and OpenXDK. So now you got c:\somedir\cxbx and c:\somedir\openxdk - Open the cxbx.sln file and answer yes to the question if you want to convert the files. You now have an environment containing the cxbe, cxbx and cxbxkrnl projects. - Change the property of the cxbxkrnl project to include (additional) the directory c:\somedir\openxdk\include (Properties -> C/C++ -> General) - Change the property of the cxbxkrnl project to include (additional) the ddraw.lib library (Properties -> Linker -> Input) Now you have to change some code: In the file Mutex.cpp in the routine Lock and Unlock change the calls to InterLockedCompareExchange to use the (LONG) calls. In the file EmuXOnline.h add the keyword public to the class so all members are accessable like this: class EmuThis { public: // etc. Now everything should compile. Good luck! Last edited by Dessie; August 10th, 2003 at 16:54. |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Aug 2003
Posts: 4
|
Ok it seems it's not enough unless I misunderstood a step. Everything performed as you specified. I assume this is ok to post.
Here's the compile errors/warnings... Cxbe warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library Cxbx error result returned from 'c:\*OMITTED*\cxbx-0.7.7b-source\cxbx\bin\bat00001d.bat'. CxbxKrnl error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "void __cdecl XTL::EmuD3DInit(struct Xbe::Header *,unsigned long)" (?EmuD3DInit@XTL@@YAXPAUHeader@Xbe@@K@Z) CxbxKrnl fatal error LNK1120: 1 unresolved externals |
|
|
|
|
|
#5 (permalink) | |
|
Registered User
Join Date: Jul 2003
Posts: 5
|
Re: Visual .NET 2003 compiling...
Quote:
You can ignore the first warning, maybe i will look how to get rid of it, but it is not fatal (just not flawless) The error about the unresolved symbol is easily fixed by adding the ddraw.lib to the additional dependencies in cxbxkrnl. I will change the former reply so that step is added. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|